geo_recode | R Documentation |
Create a table of current year geographical codes against previous
years geogprahical codes. This is used to recode the previous years codes to the
current codes. Implementation of this function is base on norgeo::track_change()
function.
geo_recode(
type = c("grunnkrets", "bydel", "kommune", "fylke"),
from = NULL,
to = NULL,
write = FALSE,
append = FALSE,
fix = TRUE
)
type |
Type of regional granularity ie. enumeration area (grunnkrets) |
from |
Starting year for the range period. Current year is the default if left empty |
to |
End of year for the range period. Current year is the default if left empty |
write |
Write table to the |
append |
Append the data to an existing table in the |
fix |
Default is TRUE. Use external codes to fix geo changes manually. The codes is sourced from config files depending on the granularity levels. |
Other geo codes functions:
geo_map()
,
get_geo_dummy()
## Not run:
geo_recode(type = "grunnkrets", from = 2018, to = 2021, write = TRUE)
geo_recode(type = "grunnkrets", from = 2018, to = 2021, append = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.