Learn R Programming

inegiR (version 3.0.0)

incat_: Get INEGI Catalogs

Description

Allows you to download the catalogs of frequencies, sources, notes, topics and indicator names. Called in the background in some functions.

Usage

incat_freq(token, id = NULL)

incat_source(token, id = NULL)

incat_notes(token, id = NULL)

incat_topic(token, id = NULL)

incat_indicator(token, id = NULL)

Arguments

token

INEGI API token

id

Optional id. If NULL, will download entire catalog.

Value

data.frame

Examples

Run this code
# NOT RUN {
# Get the corresponding frequency for frequency id #8 (monthly)
# }
# NOT RUN {
token <- "webservice token"
incat_freq(token, id = "8")
# }
# NOT RUN {
# Get all of the note descriptions
# }
# NOT RUN {
token <- "webservice token"
incat_notes(token)
# }
# NOT RUN {
#' # Get all of the sources descriptions
# }
# NOT RUN {
token <- "webservice token"
incat_source(token)
# }

Run the code above in your browser using DataLab