Description Usage Arguments Value See Also Examples
getValues returns all values or the values for a number of rows of a Raster* object. Values returned for a RasterLayer are a vector. The values returned for a RasterStack or RasterBrick are always a matrix, with the rows representing cells, and the columns representing layers
values
is a shorthand version of getValues (for all rows).
1 2 3 |
x |
Raster* object |
row |
Numeric. Row number, should be between 1 and nrow(x), or missing in which case all values are returned |
nrows |
Numeric. Number of rows. Should be an integer > 0, or missing |
... |
Additional arguments. When x is a |
vector or matrix of raster values
getValuesBlock, getValuesFocal, setValues
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.