Skip to content
Prev 313046 / 398503 Next

Changing data frame column headings

If you check, the help files, you will find rename in reshape and plyr, but
not reshape2. But you have never shown us the command you used with names()
and what didn't work:
+     tds_quant=rnorm(5, 5))
alk_quant ph_quant tds_quant
1  6.569293 5.494560  5.521039
2  4.854873 5.612902  5.235817
3  4.636218 5.116499  5.973769
4  5.430009 6.273394  3.511017
5  5.714755 6.876349  4.035907
alk       ph      tds
1 6.569293 5.494560 5.521039
2 4.854873 5.612902 5.235817
3 4.636218 5.116499 5.973769
4 5.430009 6.273394 3.511017
5 5.714755 6.876349 4.035907

----------------------------------------------
David L Carlson
Associate Professor of Anthropology
Texas A&M University
College Station, TX 77843-4352