Dear Rusers,

how can I designate various objects the names of which start (or end) with
the same letter to remove them all together?

For instance:
> ls()
"a","b","c","l1","l2","x"
> rm(list=ls("l*"))
> ls()
"a","b","c",""x"

Is there some parallel to the MySQL query: where col1 like "l%"

Thanks a lot in advance,
Friderike


        [[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.

Reply via email to