[R] function to find coodinates in an array

Ana Conesa aconesa at ochoa.fib.es
Thu Aug 16 09:40:51 CEST 2007


Dear list,

I am looking for a function/way to get the array coordinates of given
elements in an array. What I mean is the following:
- Let X be a 3D array
- I find the ordering of the elements of X by ord <- order(X) (this
returns me a vector)
- I now want to find the x,y,z coordinates of each element of ord

Can anyone help me?

Thanks!

Ana



More information about the R-help mailing list