[R] Convert text into a variable name

Simon Blomberg s.blomberg1 at uq.edu.au
Thu Nov 6 06:28:39 CET 2008


On Thu, 2008-11-06 at 00:03 -0500, Xing Yuan wrote:
> Hello R users,
> Does anybody know what command I should use to convert the text string "AGE"
> to be variable name AGE so I can assign value to it
> e.g. AGE = 39?
> Thank you very much!
> Joe
> 	[[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.
Simon Blomberg, BSc (Hons), PhD, MAppStat. 
Lecturer and Consultant Statistician 
Faculty of Biological and Chemical Sciences 
The University of Queensland 
St. Lucia Queensland 4072 
Room 320 Goddard Building (8)
T: +61 7 3365 2506
email: S.Blomberg1_at_uq.edu.au

1.  I will NOT analyse your data for you.
2.  Your deadline is your problem.

The combination of some data and an aching desire for 
an answer does not ensure that a reasonable answer can 
be extracted from a given body of data. - John Tukey.

More information about the R-help mailing list