Skip to contents

Create a database granularity of geographical codes to aggregate data accordingly. Implementation of this function is based on norgeo::cast_geo().

Usage

geo_map(year = NULL, write = FALSE, append = FALSE, table = "tblGeo")

Arguments

year

Year for the valid geographical codes

write

Write table to the orgdata.geo database. It will overwrite the table if it already exists

append

Append the data to an existing table in the orgdata.geo

table

Table name to be created in the database. Default is tblGeo

See also

Other geo codes functions: geo_recode(), get_geo_dummy()

Examples

if (FALSE) { # \dontrun{
geo_map(2020, write = TRUE)
geo_map(2021, append = TRUE)
} # }