Learn R Programming

inegiR (version 3.0.0)

inegi_series_multiple: Returns multiple INEGI data series

Description

Returns a data.frame with multiple time series chosen from INEGI webservice. The output will always be a data.frame (not tibble) with compacted metadata. (See inegi_series to understand as_tt = FALSE and as_compact = TRUE).

Usage

inegi_series_multiple(series_id, token, names = NULL, geography = "00",
  database = "BIE")

Arguments

series_id

A vector of indicator ID's. These are obtained via the INEGI API documentation.

token

API token supplied by INEGI.

names

Optional vector of names to assign to each id. If NULL, a numerical index is assigned.

geography

Geography code of INEGI. Defaults to 00 (National)

database

Is the id from BIE (Banco de Informacion Economica) or BISE (Banco de Indicadores). Defaults to BIE. To learn more about what database your indicator is stored in, visit INEGI docs.

Value

data.frame

Examples

Run this code
# NOT RUN {
# General INPC series
token <- "webservice_token"
some_series <- c("216064", "216097")
result <- inegi_series_multiple(some_series, token)
# }

Run the code above in your browser using DataLab