Skip to contents

download_insee_index() downloads INSEE index data for 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(), verbose = 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().

verbose

logical, indicating whether to print verbose output during the download process. Default to FALSE.

Value

character indicating where each series has been downloaded.

Examples


if (FALSE) { # \dontrun{
download_insee_index("010538819")
download_insee_index(c("010538819", "010538820"))
download_insee_index(c("010538819", "010538820"), verbose = TRUE)
} # }