validCell | R Documentation |
Simple helper functions to determine if a row, column or cell number is valid for a certain Raster* object
validCell(object, cell)
validCol(object, colnr)
validRow(object, rownr)
object |
Raster* object (or a SpatialPixels* or SpatialGrid* object) |
cell |
cell number(s) |
colnr |
column number; or vector of column numbers |
rownr |
row number; or vector of row numbers |
logical value
#using a new default raster (1 degree global)
r <- raster()
validCell(r, c(-1, 0, 1))
validRow(r, c(-1, 1, 100, 10000))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.