1 min read R写function技巧 2018/04/25 pass string and dataframe as variables in a function function(data,y){ data[,y] ... }