Re: [R] Convert 2-dim array to 3-dim array

2012-06-04 Thread arun
97075238 [4,] -1.489352  0.02184994 [5,]  1.119826  0.91794156 > dim(myArr1) [1] 5 2 3 A.K. - Original Message - From: David Winsemius To: David Zastrau Cc: r-help@r-project.org Sent: Monday, June 4, 2012 10:45 AM Subject: Re: [R] Convert 2-dim array to 3-dim array On Jun

Re: [R] Convert 2-dim array to 3-dim array

2012-06-04 Thread David Winsemius
ssage - From: David Winsemius To: David Zastrau Cc: r-help@r-project.org Sent: Monday, June 4, 2012 10:45 AM Subject: Re: [R] Convert 2-dim array to 3-dim array On Jun 4, 2012, at 5:08 AM, David Zastrau wrote: Hello R-users, I'd like to load data from a CSV-file to a 3-dimensional array

Re: [R] Convert 2-dim array to 3-dim array

2012-06-04 Thread Petr Savicky
On Mon, Jun 04, 2012 at 11:08:24AM +0200, David Zastrau wrote: > Hello R-users, > > I'd like to load data from a CSV-file to a 3-dimensional array. However > the default seems to be 2-dimensional. It would also be ok to load the > data and then convert it to a 3-dimensional structure. > > I've

Re: [R] Convert 2-dim array to 3-dim array

2012-06-04 Thread David Winsemius
On Jun 4, 2012, at 5:08 AM, David Zastrau wrote: Hello R-users, I'd like to load data from a CSV-file to a 3-dimensional array. However the default seems to be 2-dimensional. No. that is not the problem. It would also be ok to load the data and then convert it to a 3-dimensional structu

[R] Convert 2-dim array to 3-dim array

2012-06-04 Thread David Zastrau
Hello R-users, I'd like to load data from a CSV-file to a 3-dimensional array. However the default seems to be 2-dimensional. It would also be ok to load the data and then convert it to a 3-dimensional structure. I've been trying: dat = read.csv(filename) myArr = as.array(dat, dim = c(12