Convert metrics to an sf object for spatial analysis and integration with the areaOfEffect package.
Examples
# \donttest{
coords <- data.frame(x = runif(50), y = runif(50))
species <- matrix(rbinom(50 * 30, 1, 0.3), nrow = 50)
metrics <- spaccMetrics(species, coords)
if (requireNamespace("sf", quietly = TRUE)) {
metrics_sf <- as_sf(metrics)
}
# }