View source: R/raster_functions.R View source: R/pgfunctions.R
Converts a raster to a set of points, optionally removing missing values.
Simple function that returns a raster as a sf set of points
1 2 3 | raster_points(raster, na.rm = TRUE)
raster_points(raster, na.rm = TRUE)
|
An sf with column val = values(raster)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.