1 min read

R写function技巧

pass string and dataframe as variables in a function

function(data,y){
  data[,y] ...
}