extract_points {shar} | R Documentation |
Extract points
extract_points(raster, pattern)
raster |
SpatRaster with environmental data |
pattern |
ppp object with point pattern. |
The function extracts the number of points within each discrete habitat.
data.frame
## Not run:
landscape_classified <- classify_habitats(terra::rast(landscape), n = 5, style = "fisher")
extract_points(raster = landscape_classified, pattern = species_b)
## End(Not run)