
Generate adjacency data with Meta Social Connectedness
Source:R/generate_adjacency_meta.R
generate_adjacency_meta.RdGenerate adjacency data between NUTS 3 regions from Meta Social Connectedness Index.
Arguments
- regions
(
character())
The geographic regions of interest. IfNULL, all regions are returned.
Value
(data.frame(1))
The adjacency (connectedness) of the regions. Effectively, the adjacency is a long-form of the adjacency-matrix
The data.frame must include the following columns:
- from (character): Region identifier.
- to (character): Region identifier.
- adjacency (numeric): Strength of the connectedness.
Examples
if (FALSE) { # \dontrun{
adjacency_meta_nordic <- generate_adjacency_meta(regions = c("DK", "FI", "IS", "NO", "SE"))
} # }