| get_siope_dados_gerais | R Documentation |
Retrieves general data from SIOPE including demographics, GDP, revenues, expenses, and declaration metadata for municipalities and states.
get_siope_dados_gerais(
ano,
periodo,
uf,
use_cache = TRUE,
verbose = FALSE,
page_size = 1000L,
max_rows = Inf,
filter = NULL,
orderby = NULL,
select = NULL
)
get_siope_general_data(year, period, state, use_cache = TRUE,
verbose = FALSE,
page_size = 1000, max_rows = Inf,
filter = NULL, orderby = NULL, select = NULL)
ano |
Integer. Year of the data (e.g., |
periodo |
Integer. Bimester period (1-6). Required. |
uf |
Character. State abbreviation (e.g., |
use_cache |
Logical. If |
verbose |
Logical. If |
page_size |
Integer. Rows per page for OData pagination. Defaults
to |
max_rows |
Numeric. Maximum rows to return. Defaults to |
filter |
Character. OData |
orderby |
Character. OData |
select |
Character vector. Column names to return (reduces payload
size). Uses original API column names (e.g.,
|
year |
Integer. Year (e.g., |
period |
Integer. Bimester (1-6). Required. Maps to |
state |
Character. State abbreviation (e.g., |
Performance tip: use the filter parameter to narrow results on
the server before downloading. For example, filtering by municipality
name or IBGE code returns only the rows you need instead of all
municipalities in the state.
get_siope_general_data() is an English alias.
A tibble with 52 columns including tipo,
num_ano, sig_uf, cod_muni, nom_muni, num_popu, revenue and
expense values, PIB data, and declaration metadata.
Other SIOPE:
get_siope_despesas(),
get_siope_despesas_funcao(),
get_siope_indicadores(),
get_siope_info_complementares(),
get_siope_receitas(),
get_siope_remuneracao(),
get_siope_responsaveis()
## Not run:
# General data for all municipalities in Pernambuco
dados <- get_siope_dados_gerais(ano = 2023, periodo = 6, uf = "PE")
# FAST: Filter to a single municipality (server-side)
recife <- get_siope_dados_gerais(
ano = 2023, periodo = 6, uf = "PE",
filter = "NOM_MUNI eq 'Recife'"
)
# Filter + select specific columns (use original API names!)
resumo <- get_siope_dados_gerais(
ano = 2023, periodo = 6, uf = "PE",
filter = "COD_MUNI eq 2611606",
select = c("NOM_MUNI", "VAL_RECE_REAL", "VAL_DESP_PAGA")
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.