Renaming columns
authorOleksandr Gavenko <gavenkoa@gmail.com>
Sat, 05 Mar 2016 22:55:38 +0200
changeset 1938 f01a39748c0d
parent 1937 095a0ab12893
child 1939 d56a295b48da
Renaming columns
r.rst
--- a/r.rst	Sat Mar 05 22:51:01 2016 +0200
+++ b/r.rst	Sat Mar 05 22:55:38 2016 +0200
@@ -202,4 +202,5 @@
   names(d)[2] <- "two"
 
   library(plyr)
-  rename(d, c("beta"="two", "gamma"="three"))
+  newd <- rename(d, c("beta"="two", "gamma"="three"))
+