get_insee_dataset: Get dataset from INSEE BDM database

Description Usage Arguments Details Value Examples

View source: R/get_insee_dataset.R

Description

Get dataset from INSEE BDM database

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
get_insee_dataset(
  dataset,
  startPeriod = NULL,
  endPeriod = NULL,
  firstNObservations = NULL,
  lastNObservations = NULL,
  includeHistory = NULL,
  updatedAfter = NULL,
  filter = NULL
)

Arguments

dataset

dataset name to be downloaded

startPeriod

start date of data

endPeriod

end date of data

firstNObservations

get the first N observations for each key series (idbank)

lastNObservations

get the last N observations for each key series (idbank)

includeHistory

boolean to access the previous releases (not available on all series)

updatedAfter

starting point for querying the previous releases (format yyyy-mm-ddThh:mm:ss)

filter

Use the filter to choose only some values in a dimension. It is recommended to use it for big datasets. A dimension left empty means all values are selected. To select multiple values in one dimension put a "+" between those values (see example)

Details

Get dataset from INSEE BDM database

Value

a tibble with the data

Examples

1
2
3
4
5
6
7
8
9
insee_dataset = get_dataset_list()
idbank_ipc = get_idbank_list("IPC-2015")

#example 1
data = get_insee_dataset("IPC-2015", filter = "M+A.........CVS..", startPeriod = "2015-03")

#example 2
data = get_insee_dataset("IPC-2015", filter = "A..SO...VARIATIONS_A....BRUT..SO",
 includeHistory = TRUE, updatedAfter = "2017-07-11T08:45:00")

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