[R] using data() and determining data types
edna.bell01 at gmail.com
Thu Aug 9 10:42:58 CEST 2007
Hi R Gurus:
I'm using the data() function to get the list of data sets for a package.
I would like to find the class for each data set; i.e.,data.frame, etc.
Using str(), I can find the name of the data set.
However, when I try the class function on the str output, I get
"character", since the name in the str is a character.
I've also tried this with just plain results column. Still no luck.
Any help would be much appreciated.
More information about the R-help