| sidra_query | R Documentation |
Constructs and validates a SIDRA values URL. This is useful for inspecting
a request or passing it to sidra_plan() before any values are downloaded.
sidra_query(
x,
variable = "allxp",
period = "last",
geo = "Brazil",
geo.filter = NULL,
classific = "all",
category = "all",
header = TRUE,
format = 4,
digits = "default",
api = NULL,
value_type = c("numeric", "character", "both"),
geo_view = NULL,
include_extinct = FALSE
)
x |
A numeric SIDRA table code. It may be omitted when |
variable |
A vector of variable codes. The special selections |
period |
A character vector of period codes, |
geo |
A character vector with geographic aliases or |
geo.filter |
A list of geographic filters corresponding to |
classific |
A vector of classification codes. |
category |
|
header |
Logical. Should the API include its header record? |
format |
An integer from 1 to 4 controlling descriptor fields. |
digits |
|
api |
A relative SIDRA API path or complete official values URL. When supplied, the other URL-building arguments are ignored. |
value_type |
Preferred value representation for a later collection:
|
geo_view |
Optional numeric SIDRA territorial-view code. Territorial
views ( |
include_extinct |
Logical. Add |
A list of class sidra_query with stable url, header, and
parameters components. No values are downloaded.
get_sidra() and sidra_plan()
query <- sidra_query(
1612,
variable = 214,
period = "2021",
geo = "n1",
classific = "c81",
category = list(2702)
)
query
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.