Retrieve data from series published by INE calling the API
Usage
get_data_series(
codSeries = NULL,
nlast = 1,
dateStart = NULL,
dateEnd = NULL,
det = 0,
tip = NULL,
lang = "ES",
validate = TRUE,
verbose = FALSE,
unnest = FALSE
)
Arguments
- codSeries
(string): Code of the series. For further information about codes click this link.
- nlast
(int): number of periods to retrieve. By default is set to 1 period.
- dateStart
(string): the initial date of the requested data. The required format is yyyy/mm/dd.
- dateEnd
(string): the end date of the requested data. The required format is yyyy/mm/dd.
- det
(int): level of detail. Valid values: 0, 1 or 2.
- tip
(string): set to 'A' for friendly output (e.g. readable dates), set to 'M' to include metadata or set to 'AM' for both.
- lang
(string): language of the retrieved data. Set to 'ES' for Spanish or set to 'EN' for English.
- validate
(logical): validate input parameters.
- verbose
(logical): print additional information, including the URL to call the API service.
- unnest
(logical): set to TRUE to obtain a single data frame of data