Re: [R] Accesing the value

From: Sundar Dorai-Raj <sundar.dorai-raj_at_pdf.com>
Date: Fri, 28 Dec 2007 08:59:21 -0600

get(x)

This is a FAQ:

http://cran.cnr.berkeley.edu/doc/FAQ/R-FAQ.html#How-can-I-turn-a-string-into-a-variable_003f

--sundar

Shubha Vishwanath Karanth said the following on 12/28/2007 8:38 AM:
> Hi R,
>
>
>
> x="A"
>
> A=5
>
>
>
> I need to get the value of A using x only. How do I do this?
>
>
>
> Thanks in advance, Shubha
>
> 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.



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 Fri 28 Dec 2007 - 15:03:09 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 Fri 28 Dec 2007 - 17:30:21 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.