Description Usage Arguments Examples
The different parameters define the table and its dimensions (periods, variables, territorial units and classification) to be consulted. The parameters that define the sections may vary from table to table. Henceforth, the Sidra function ranges between 2 mandatory arguments - x (the series number) and territory (the geographic scope) to 6 arguments, where you can input the time window wanted, the variables and the sections. You can only choose one variable per series per request, but multiple sections within the variable.
1 2 |
x |
Sidra series number. |
from |
A string or character vector specifying where the series shall start. Defaults to 1980. |
to |
A string or character vector specifying where the series shall end. Defaults to current year. |
territory |
Specifies the desired territorial levels. |
variable |
An integer describing what variable characteristics are to be returned. Defaults to all available. |
cl |
A vector containing the classification codes in a vector |
sections |
A vector or a list of vectors if there are two or more classification codes containing the desired tables from the classification. |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | sidra=series_sidra(x = c(1612), from = 1990, to = 2015, territory = "brazil")
# sidra=series_sidra(x = c(3653), from = c("200201"),
# to = c("201512"), territory = "brazil",
# variable = 3135, sections = c(129316,129330),cl = 544)
# sidra=series_sidra(x = c(3653), from = c("200201"),
# to = c("201512"), territory = "brazil", variable = 3135,
# sections = "all", cl = 544)
# sidra=series_sidra(x = c(1618), from = c("201703"), to = c("201703"),
# territory = "brazil",
# variable = 109, sections=list(c(39427), c(39437,39441)), cl = c(49, 48))
# trim - x = 1620; from = 199001; to = 201701; territory = "brazil";
# sections=list(c(90687)); cl =c(11255); variable = 583
# sidra = series_sidra(x = 1620, from = 199001, to = 201701,
# territory = "brazil",
# sections=list(c(90687)), cl =c(11255), variable = 583)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.