View source: R/extract_points.R
| extract_points | 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
results_habitat_association
## Not run: 
landscape_classified <- classify_habitats(terra::rast(landscape), n = 5, style = "fisher")
extract_points(raster = landscape_classified, pattern = species_b)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.