Re: [R-sig-Geo] Apply() function on 3rd dimension of SpatialGridDataFrame

2012-12-20 Thread Edzer Pebesma
Dear Nathalie, 3D and higher-D support for Points Pixels and Grids in sp is there on the level of object creation, but very limited on the level of useful functionality. apply() is not even a generic, so can only be applied to arrays, according to ?apply. Would an as.array(clip) method for

Re: [R-sig-Geo] Apply() function on 3rd dimension of SpatialGridDataFrame

2012-12-20 Thread Edzer Pebesma
On 12/20/2012 07:56 PM, Nathalie Morin wrote: Dear Edzer, 1) as.array() /Would an as.array(clip) method for SpatialGridDataFrame help you further?/ Yes, as I mentionned in my initial post : /The only solution I found is to convert back to standard non spatial 3D array./ (in order to