[R] extracting variables with patttern templates
rg117 at ohm.york.ac.uk
Tue Oct 22 19:05:48 CEST 2002
I was wondering, does R have a facility to extract datasets based on a string template. I know that you can do something like:
X["a"] # extract from 'X' the dataset named 'a'.
What I would like is something which says, from 'X' extract all the datasets that have an 'a':
X[pat = "a"]
I know that the 'pat' option can be used when just listing all the object that exist, but is there any way to extract only certain
dataset from within an object using a smiliar technique.
Any help would be greatly appreciated.
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
More information about the R-help