Skip to contents

read_insee_serie() reads INSEE series data from a csv2 file, typically downloaded from the INSEE BDM database. It handles data.frames with a specific format (skip first 3 lines).

Usage

read_insee_serie(x)

Arguments

x

character string, representing the filepath to the INSEE series data file.

Value

A data frame with one column named "value" containing the series data. If multiple files are provided as a vector, a list of data frames is returned.

Examples

if (FALSE) { # \dontrun{
# Read a single file
download_insee_index("010538819", verbose = TRUE)
series_data = read_insee_serie(file.path(tempdir(), "010538819.csv"))

# Read multiple files
download_insee_index(c("010538819", "010776418"), verbose = TRUE)
series_list = read_insee_serie(
  file.path(tempdir(), c("010538819.csv", "010776418.csv"))
)
} # }