Re: [R] fill an array by rows

2012-02-09 Thread David Winsemius
On Feb 9, 2012, at 12:47 PM, Jim Maas wrote: I've dug around but not been able to find anything, am probably missing something obvious. How can I fill a three-dimensional (or higher dimension) array by rows instead of columns. eg new1 <- array(c(1:125), c(5,5,5)) works fine for me but

Re: [R] fill an array by rows

2012-02-09 Thread William Dunlap
essage- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On > Behalf Of Jim Maas > Sent: Thursday, February 09, 2012 9:47 AM > To: r-help@r-project.org > Subject: [R] fill an array by rows > > I've dug around but not been able to find anything,

[R] fill an array by rows

2012-02-09 Thread Jim Maas
I've dug around but not been able to find anything, am probably missing something obvious. How can I fill a three-dimensional (or higher dimension) array by rows instead of columns. eg new1 <- array(c(1:125), c(5,5,5)) works fine for me but fills it by columns and new2 <- array(c(1:125), c