Re: [R] Variable name in a String

2008-07-30 Thread Erik Iverson
?assign, ?get R_Learner wrote: Hi all, I have this string "year" and integer 2008 (both are inputs from the user), and I would like to make a variable called "year2008" that will store a vector of numbers. Does anyone know how to do this? Also, if the user later input "year" and "2008",

[R] Variable name in a String

2008-07-30 Thread R_Learner
Hi all, I have this string "year" and integer 2008 (both are inputs from the user), and I would like to make a variable called "year2008" that will store a vector of numbers. Does anyone know how to do this? Also, if the user later input "year" and "2008", how do I treat this as a variable;