[R] just a small variable-naming question
Richard Sherman
rss.pdx at gmail.com
Sat Aug 24 18:09:21 CEST 2013
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 2 3 4
3 3 4 5
and I want to add (not replace) the names var1, var2, var3 to the existing col1, col2, col3, what is the right way to do that?
Thanks.
-Richard
---
Prof. Richard Sherman
Division of International Studies
Korea University
More information about the R-help
mailing list