View source: R/raster_to_points.R
raster_to_points | R Documentation |
Raster to points
raster_to_points(landscape, return_NA = TRUE)
landscape |
A categorical raster object: SpatRaster; Raster* Layer, Stack, Brick; stars or a list of SpatRasters. |
return_NA |
If true, NA cells are also included |
Wrapper around terra::xyFromCell and terra::getValues to get raster_to_points function including NA values
matrix
landscape <- terra::rast(landscapemetrics::landscape)
raster_to_points(landscape)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.