Re: [R] just a small variable-naming question

2013-08-27 Thread Keith Jewell
rd Sherman To: r-help@r-project.org Cc: Sent: Saturday, August 24, 2013 12:09 PM Subject: [R] just a small variable-naming question Hi all, If I have this little data set: myData<- data.frame(col1 = 1:3, col2 =2:4, col3 = 3:5) myData col1 col2 col3 1123 2234 33

Re: [R] just a small variable-naming question

2013-08-24 Thread arun
om: Richard Sherman To: r-help@r-project.org Cc: Sent: Saturday, August 24, 2013 12:09 PM Subject: [R] just a small variable-naming question Hi all, If I have this little data set: > myData  <- data.frame(col1 = 1:3, col2 =2:4, col3 = 3:5) > myData   col1 col2 col3 1    1    2    3 2

[R] just a small variable-naming question

2013-08-24 Thread Richard Sherman
Hi all, If I have this little data set: > myData <- data.frame(col1 = 1:3, col2 =2:4, col3 = 3:5) > myData col1 col2 col3 1123 2234 3345 and I want to add (not replace) the names var1, var2, var3 to the existing col1, col2, col3, what is the right way to d