ra_values | R Documentation |
Function to return all values in a raster object.
ra_values(ra)
ra |
A raster object. |
Numeric vector or numeric matrix.
Stuart K. Grange
values
# Load raster object
ra_example <- raster::raster(system.file("external/test.grd", package = "raster"))
# Get values
ra_values(ra_example)
# Get unique values and sort
sort(unique(ra_values(ra_example)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.