Skip to content
Prev 15183 / 29559 Next

extracting row of data in a SpatialGridDataFrame object

bio_grid[1,] is the first row of the grid (think of the grid as a
matrix), not the first row of the data.frame with attributes.

Although direct manipulation of slots is not recommended in general, in
case of large objects it may be useful to address the data values at
grid cells directly by the data.frame that carries them: bio_grid at data;
its first row is

bio_grid at data[1,]

Hth,
On 05/29/2012 02:35 PM, Elena_C wrote: