platform_geographic_levels | R Documentation |
This function define all geographic levels available and their properties (tables, ...) for the platform.
platform_geographic_levels(
levels,
level.base = NULL,
table = "geo_levels",
columns = NULL,
hierarchies = NULL,
default.hierarchy = "default",
country = FALSE,
define = TRUE,
normalizers = list()
)
levels |
list of levels with level name in names and column name in value, if it not a named vector, the use value as level |
level.base |
name of the base level (if null, first level is used) |
table |
name of the table containing all the levels (it can be the lowest level table as it should contains reference to all upper levels) |
columns |
list of column name for each level in the form list([name]=[column_name]) |
hierarchies |
list of hierarchies list( hierarchy1=c(levels order), hierarchy2=(levels order), ...) |
default.hierarchy |
name of the default hierarchy to be used to get upper or lower column |
country |
handle country column |
define |
if TRUE set the geo.levels during the call, set to FALSE if you dont want to change configuration |
normalizers |
list() named list for level name with a normalizer function |
This function is intented to be used in a platform file see vignette("platform-file", "ifnBase")
and vignette("geopgrahy", "ifnBase")
geography
Other platfom:
platform_env()
,
platform_geographic_tables()
,
platform_options()
,
platform_season_history()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.