I'm not quite familiar with R function dealing with variables used. Here's the problem:
I want to built a function, of which variables ...
are column names of data frame used for table()
.
f <- function (data, ...){
T <- with(data, table(...) # ... variables input
return(T)
}
How can I deal with the code? Thanks a lot for answering!