[R] Rearranging columns with cbind
Cliff Clive
cliffclive at gmail.com
Thu Apr 21 22:44:12 CEST 2011
It's just a typo.
You're missing a comma at the beginning of your index, and you should list
all of the rows in a vector, like this:
data[, c(19:27, 1:12, 13:15, 16:18)]
The way you entered it, R is looking for rows 19:27, columns 1:12, and
doesn't know what to do with the other numbers.
--
View this message in context: http://r.789695.n4.nabble.com/Rearranging-columns-with-cbind-tp3466767p3466804.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list