
Download INSEE Index Data
download_insee_index.Rddownload_insee_index() downloads INSEE index data for a given
series from the BDM database. It handles downloading the zipped file,
extracting the relevant CSV file, and renaming it with the series name.
Usage
download_insee_index(
serie,
destination = tempdir(),
keep_all = FALSE,
verbose = FALSE,
overwrite = FALSE
)Arguments
- serie
character string, representing the INSEE series to download.
- destination
character string, specifying the destination directory for the downloaded file. Default to
tempdir().- keep_all
logical, indicating whether to keep all files in the zip archive. If FALSE, only the file containing values is extracted. Default to FALSE.
- verbose
logical, indicating whether to print verbose output during the download process. Default to FALSE.
- overwrite
logical, indicating whether to overwrite the destination file if it already exists. Default to FALSE.
Examples
if (FALSE) download_insee_index("010538819", verbose = TRUE) # \dontrun{}
if (FALSE) download_insee_index(c("010538819", "010538820"), verbose = TRUE) # \dontrun{}