Re: [R] Remove an object by the reference

From: Richard Pearson <richard.pearson_at_postgrad.manchester.ac.uk>
Date: Tue, 13 May 2008 12:59:19 +0100

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 80 3980 8031 | Mob +91 94 4886 4510
>
> Bangalore * Colombo * London * New York * San Josť * Singapore * www.ambaresearch.com
>
>
>
> This e-mail may contain confidential and/or privileged i...{{dropped:13}}
>
>
>
> ------------------------------------------------------------------------
>
> ______________________________________________
> 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.

-- 
Richard D. Pearson             richard.pearson_at_postgrad.manchester.ac.uk
School of Computer Science,    http://www.cs.man.ac.uk/~pearsonr
University of Manchester,      Tel: +44 161 275 6178
Oxford Road,                   Mob: +44 7971 221181
Manchester M13 9PL, UK.        Fax: +44 161 275 6204

______________________________________________
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 Tue 13 May 2008 - 12:02:43 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 Tue 13 May 2008 - 12:30:41 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