Dear R community,I wish to include a variable (e.g. slice of a below)
in another variable's name. My objective would be to get a variable-name
data_A and so on. How can I do this?
a-LETTERS[1:25]
a
[1] A B C D E F G H I J K L M N O P Q R
S T U V W X Y
paste(data_,a[1])-c(1,2,3)
Error in
?assign
b
On Apr 2, 2008, at 4:26 PM, Georg Ehret wrote:
Dear R community,I wish to include a variable (e.g. slice of a
below)
in another variable's name. My objective would be to get a variable-
name
data_A and so on. How can I do this?
a-LETTERS[1:25]
a
[1] A B C D E F G H I J K L M
You'll want to use paste within the function assign.
However, consider using a list object to store this data to avoid
clutter (both in your workspace and head) and make subsequent data
analysis function calls easier.
Best,
Erik Iverson
Georg Ehret wrote:
Dear R community,I wish to
3 matches
Mail list logo