Re: [R] 4D data acsess

2011-06-30 Thread Peter Ehlers
On 2011-06-29 15:02, David Winsemius wrote: On Jun 29, 2011, at 4:56 PM, katarv wrote: Hi Sarah, I use readMat function, from R.matlab function. str(X) tells that X : num [1:64, 1:64, 1:21, 1:300] as I said, the first 3 columns are x,y,z coordinates. And I need all values in the last colum

Re: [R] 4D data acsess

2011-06-29 Thread David Winsemius
On Jun 29, 2011, at 4:56 PM, katarv wrote: Hi Sarah, I use readMat function, from R.matlab function. str(X) tells that X : num [1:64, 1:64, 1:21, 1:300] as I said, the first 3 columns are x,y,z coordinates. And I need all values in the last column correcponding to a given (x,y,z) coord

Re: [R] 4D data acsess

2011-06-29 Thread katarv
Hi Sarah, I use readMat function, from R.matlab function. str(X) tells that X : num [1:64, 1:64, 1:21, 1:300] as I said, the first 3 columns are x,y,z coordinates. And I need all values in the last column correcponding to a given (x,y,z) coordinate. if you list the values of X, then they ar

Re: [R] 4D data acsess

2011-06-29 Thread Sarah Goslee
Hi Katia, On Wed, Jun 29, 2011 at 12:50 PM, Katia Smirnova wrote: > Hi, I have a 4D data file from MATLAB, call it X,  that I want to analyze in > R. The first 3 dimensions are x y z coordinates and the forth is a value in > time. > > If you took a sample vector in matlab it would look like > > v

[R] 4D data acsess

2011-06-29 Thread Katia Smirnova
Hi, I have a 4D data file from MATLAB, call it X, that I want to analyze in R. The first 3 dimensions are x y z coordinates and the forth is a value in time. If you took a sample vector in matlab it would look like vec1 = X(x1, y1, z1, :) vec2 = X( x2, y2, z2, :) this would give you all values