powered by
Makes a vector of character strings from a list of valid S names
Cs(...)
character string vector
any number of names separated by commas
sys.frame, deparse
Cs(a,cat,dog) # subset.data.frame <- dataframe[,Cs(age,sex,race,bloodpressure,height)]
Run the code above in your browser using DataLab