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 ______________________________________________ R-help@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.