Hi David, I would like to have two objects, one containing the values in a column and the other containing the column's name.
Of course, that's easy to do manually, but I don't want to have to type out the name of the column more than once (thus, below, I have typed it once in quotes, and I am trying to find a programatic way to create the other object, without typing the column name again). Thank you for your help. Mark Na On Thu, Jan 17, 2013 at 4:06 PM, David Winsemius <dwinsem...@comcast.net>wrote: > > On Jan 17, 2013, at 1:36 PM, mtb...@gmail.com wrote: > > > Hello R-helpers, > > > > I have run the following lines of code: > > > > x<-"cars$dist" > > y<-noquote(x) > > > > > > Now y is a string containing the characters "cars$dist" > > > > My question....is there an R function (or combination of functions) that > I > > can apply to y that will cause y to contain the numbers in cars$dist? > Even > > better, can I do it without using noquote()? > > What is the goal of this effort? > > -- > > David Winsemius > Alameda, CA, USA > > [[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.