[R] rm(l*)

From: Oehler, Friderike (AGPP) <Friderike.Oehler_at_fao.org>
Date: Mon, 14 Jul 2008 10:45:13 +0200

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()

> rm(list=ls("l*"))
> ls()


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

Thanks a lot in advance,

        [[alternative HTML version deleted]]

R-help_at_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. Received on Mon 14 Jul 2008 - 08:49:59 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 14 Jul 2008 - 09:31:29 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive