Extract points
extract_points(raster, pattern)
data.frame
SpatRaster with environmental data
ppp object with point pattern.
The function extracts the number of points within each discrete habitat.
results_habitat_association
if (FALSE) { landscape_classified <- classify_habitats(terra::rast(landscape), n = 5, style = "fisher") extract_points(raster = landscape_classified, pattern = species_b) }
Run the code above in your browser using DataLab