Hi, data.frame(x1=1:11,x2=2:12,x3=3:13,y=4:14)
I want to extract all the columns that with the name 'x?'. Is there a general way to do this in R? Regards, Peng ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.