Hi,
I would like to refer to a column in a data frame using a variable. How would I do this? Something like: c1<-"column1" dat${c1} where names(dat) includes 'column1' Thanks, Bernd [[alternative HTML version deleted]] ______________________________________________ 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.