Re: [R] Remove an object by the reference

2008-05-13 Thread Gabor Csardi
> a <- 1 > x <- "a" > rm(list=x) > a Error: object "a" not found See ?rm for details. Gabor On Tue, May 13, 2008 at 05:13:41PM +0530, Shubha Vishwanath Karanth wrote: > Hi R, > > > > A simple question, but don't know the answer... > > > > x="a" > > a=5 > > > > I need to remove the o

Re: [R] Remove an object by the reference

2008-05-13 Thread Richard Pearson
How about rm(list=x)? Richard. Shubha Vishwanath Karanth wrote: Hi R, A simple question, but don't know the answer... x="a" a=5 I need to remove the object "a" by using only x. something like rm(somefunction(x))...Is this possible? Shubha Karanth | Amba Research Ph +91 8

[R] Remove an object by the reference

2008-05-13 Thread Shubha Vishwanath Karanth
Hi R, A simple question, but don't know the answer... x="a" a=5 I need to remove the object "a" by using only x. something like rm(somefunction(x))...Is this possible? Shubha Karanth | Amba Research Ph +91 80 3980 8031 | Mob +91 94 4886 4510 Bangalore * Colombo * London * New Y