Skip to content
Back to formatted view

Raw Message

Message-ID: <1303418652953-3466804.post@n4.nabble.com>
Date: 2011-04-21T20:44:12Z
From: Cliff Clive
Subject: Rearranging columns with cbind
In-Reply-To: <1303417386160-3466767.post@n4.nabble.com>

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.