get_insee: Get data from INSEE BDM database with a SDMX query link

Description Usage Arguments Details Value Examples

View source: R/get_insee.R

Description

Get data from INSEE BDM database with a SDMX query link

Usage

1
get_insee(link, step = "1/1")

Arguments

link

SDMX query link

step

argument used only for internal package purposes to tweak download display

Details

Get data from INSEE BDM database with a SDMX query link. This function is mainly for package internal use. It is used by the functions get_insee_dataset, get_insee_idbank and get_dataset_list. The data is cached, hence all queries are only run once per R session. The user can disable the download display in the console with the following command : Sys.setenv(INSEE_download_verbose = "FALSE"). The use of cached data can be disabled with : Sys.setenv(INSEE_no_cache_use = "TRUE"). All queries are printed in the console with this command: Sys.setenv(INSEE_print_query = "TRUE"). The RapidXML C++ library is used as a backup thanks to the readsdmx package. It can be used instead of the internal parser with this command : Sys.setenv(INSEE_read_sdmx_fast = "TRUE")

Value

a tibble containing the data

Examples

1
2
3
insee_link = "http://www.bdm.insee.fr/series/sdmx/data/SERIES_BDM"
insee_query = file.path(insee_link, paste0("010539365","?", "firstNObservations=1"))
data = get_insee(insee_query)

hadrilec/insee documentation built on Oct. 13, 2021, 12:03 p.m.