Hi, I'm trying to figure out syntax R function rm() needs to remove all objects starting with same name. For example, if I have object1, object2, object3, i want to do an operation similar to UNIX rm object* Thanks. -- View this message in context: http://r.789695.n4.nabble.com/remove-multiple-objects-starting-with-same-name-tp4418694p4418694.html Sent from the R help mailing list archive at Nabble.com.
R. Michael Weylandt
2012-Feb-25 07:00 UTC
[R] remove multiple objects starting with same name
rm(list = ls(pattern = "object")) Michael On Fri, Feb 24, 2012 at 4:40 PM, katarv <katiasmirn at gmail.com> wrote:> Hi, > > I'm trying to figure out syntax R function rm() needs to remove all objects > starting with same name. ?For example, if I have object1, object2, object3, > i want to do an operation similar to UNIX rm object* > > Thanks. > > > > > -- > View this message in context: http://r.789695.n4.nabble.com/remove-multiple-objects-starting-with-same-name-tp4418694p4418694.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > 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.