Description Usage Arguments Value Examples
Download and process Eurostat indicators, create their labelling table and descriptive metadata about the indicators. Save the two metadata tables into metadata tables, and the tidy indicators themselves into an indicator table.
1 2 3 4 5 6 7 | create_database(
indicator_table,
metadata_table,
labelling_table,
description_table,
db_path = tempdir()
)
|
indicator_table |
Indicators created by |
metadata_table |
Meatadata tables created by |
labelling_table |
Labelling table created by |
description_table |
Description and keywords created for the indicators
by |
db_path |
A path to save the database. Defaults to |
An SQLite database with four tables: indicator, metadata, labelling and description.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | data ( "small_population")
population_long <- small_population %>%
pivot_wider( names_from = "geo", values_from = "values") %>%
pivot_longer ( cols = all_of(c("LI", "AD", "SM")),
names_to = "geo", values_to = "values")
small_population_data <- get_eurostat_indicator(
preselected_indicators = population_long,
id = "demo_pjan")
create_database (indicator_table = small_population_data$indicator,
metadata_table = small_population_data$metadata,
labelling_table = small_population_data$labelling,
description_table = small_population_data$description,
db_path = file.path(tempdir(), "smallpopulation.db"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.