| join_brmap | R Documentation |
A small type-preserving wrapper around [dplyr::left_join()].
join_brmap(map, data, by = NULL)
join_data(map, data, by = NULL)
map |
An 'sf', 'SpatialPolygonsDataFrame' or 'data.frame' object. |
data |
A data frame containing the columns to add. |
by |
Join specification accepted by [dplyr::left_join()]. |
The same broad object type supplied in 'map'.
[get_brmap()]
data("pop2017")
municipalities <- get_brmap("municipality", year = 2023)
municipalities <- join_brmap(
municipalities, pop2017, by = c("municipality_code" = "mun")
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.