1 min read

【技术·R】🔧 R函数编写技巧:高效代码设计指南

pass string and dataframe as variables in a function

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