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.

______________________________________________
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.

Reply via email to