Re: [R] converting 3D array to a data-frame (with coordinate-columns x, y, z)

2012-09-24 Thread frauke
Hi Martin, did you ever find a solution? I have the a similar problem because I want to do a regression where the independent and dependent variables are matrices of measurements. I can run loops to make each matrix one very long vector, but I m looking for a more elegant solution. Thank you! F

Re: [R] converting 3D array to a data-frame (with coordinate-columns x, y, z)

2011-10-05 Thread R. Michael Weylandt
reshape::melt does this I think Michael On Wed, Oct 5, 2011 at 12:20 PM, Martin Batholdy wrote: > Hi, > > > I am still struggling with three dimensional arrays. > > Now I would like to convert a three dimensional array into a data-frame with > the coordinate-columns: x, y, z and a value-column.

[R] converting 3D array to a data-frame (with coordinate-columns x, y, z)

2011-10-05 Thread Martin Batholdy
Hi, I am still struggling with three dimensional arrays. Now I would like to convert a three dimensional array into a data-frame with the coordinate-columns: x, y, z and a value-column. And I definitely don't want to loop over every element, since this would be very resource intensive for the