Re: [R] converting matrix in array

2011-08-28 Thread William Dunlap
It helps to consider a small self-containd example where the correct answer is obvious. Does the following look like your input and desired output? > a <- rbind(c("obj1-ptA-x", "obj1-ptA-y", "obj1-ptA-z"), +c("obj1-ptB-x", "obj1-ptB-y", "obj1-ptB-z"), +c("obj2-ptA-x"

Re: [R] converting matrix in array

2011-08-28 Thread David Winsemius
On Aug 28, 2011, at 5:09 PM, marco wrote: Hi everyone, have a small problem trying to converting a dataset in matrix form to an array. Specifically: data include 3D measurement -x,y,z of 59 points in 36 objects. They are stored as a matrix (x) of 2124 rows and 3 columns. What I want to do