Thanks very much. Using the matrix function and then DF[,ix] gives me exactly
what I wanted.
Jabez
--- On Wed, 25/11/09, Gabor Grothendieck wrote:
From: Gabor Grothendieck
Subject: Re: [R] Re-arrange Columns in data frame
To: "Jabez Wilson"
Cc: "R Mailing List"
Date: We
Try this:
# first case
ix <- c(matrix(1:24, 4, byrow = TRUE))
DF[ix]
# second case
ix <- c(matrix(1:16, 4, byrow = TRUE))
DF[ix]
On Wed, Nov 25, 2009 at 11:16 AM, Jabez Wilson wrote:
> Hi, I have a data frame which is 24 columns by 10 rows. This is essentially
> 6 groups of 4 columns. I want t
2 matches
Mail list logo