Joshua Wiley <jwiley.psych <at> gmail.com> writes: [snip]
> Look at these examples: > > test[interest] > #or > test[, interest] > # but > test[first] > test[,first] > > Notice that for `[`, the name of the column _must_ be quoted, or be an > object itself. or test[[first]] ; you probably do not want test[first] , which returns a list of length 1 containing the column of interest, rather than the column itself ... ______________________________________________ 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.