Mean distance to an sf object
mean_dist_to_sf(target, coords = c("x", "y"), buffer = 0, squared = TRUE)
An sf object.
Character vector with the columns of the data object that define de coordinates.
Buffer around the sf object. Distances smaller
Logical indicating whether to compute the mean squared