cellFromPxcorPycor | R Documentation |
patches
coordinatesReport the cells numbers as defined for a Raster*
object given the patches
coordinates pxcor
and pycor
.
cellFromPxcorPycor(world, pxcor, pycor) ## S4 method for signature 'worldNLR,numeric,numeric' cellFromPxcorPycor(world, pxcor, pycor)
world |
|
pxcor |
Integer. Vector of patches |
pycor |
Integer. Vector of patches |
Numeric. Vector of cells number.
Sarah Bauduin
w1 <- createWorld(minPxcor = 0, maxPxcor = 9, minPycor = 0, maxPycor = 9) cellFromPxcorPycor(world = w1, pxcor = 0, pycor = 9) cellFromPxcorPycor(world = w1, pxcor = c(0, 1, 2), pycor = 0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.