View source: R/addl-measure-gen-fcns.R
Calculated mean centroid distance within a study area to geographic divisions. Takes as input a spatial dataframe for centroids and another with divisions with a shared geographic identifier column.
1 2 3 4 5 6 7 | mean_centroid_dist2div(
centroid_df,
div_df,
identifier_column,
pop_col = "population",
verbose = FALSE
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.