| get_rreo_for_state | R Documentation |
Fetches RREO data for every municipality of state_uf, looping over
get_rreo() with fault tolerance: if an individual municipality call fails
after all retries, the failure is recorded and the loop continues. Failed
calls are returned in attr(result, "failed").
get_rreo_for_state(
state_uf,
an_exercicio,
nr_periodo,
co_tipo_demonstrativo,
no_anexo,
include_capital = TRUE,
on_error = c("warn", "stop", "silent"),
use_cache = TRUE,
verbose = FALSE,
page_size = NULL,
max_rows = Inf
)
get_budget_report_for_state(state_uf, fiscal_year, period,
report_type, appendix, include_capital = TRUE,
on_error = c("warn", "stop", "silent"),
use_cache = TRUE, verbose = FALSE,
page_size = NULL, max_rows = Inf)
state_uf |
Character. Two-letter UF code (e.g., |
an_exercicio |
Integer. Fiscal year. Required. |
nr_periodo |
Integer. Bimester (1-6). Required. |
co_tipo_demonstrativo |
Character. |
no_anexo |
Character. Appendix name (e.g., |
include_capital |
Logical. Include the state capital? Defaults to |
on_error |
Character. One of |
use_cache |
Logical. If |
verbose |
Logical. If |
page_size |
Integer or |
max_rows |
Numeric. Maximum rows per municipality call. |
fiscal_year |
Integer. Fiscal year. Required. Maps to
|
period |
Integer. Bimester (1-6). Required. Maps to |
report_type |
Character. |
appendix |
Character. Appendix name. Required. Maps to |
This is the recommended way to assemble a state-wide panel: it handles pagination per municipality, uses the cache, and surfaces partial failures instead of aborting on the first error (see SICONFI behaviour for entities that have not yet homologated a given report).
get_budget_report_for_state() is an English-parameter alias.
A tibble with RREO rows for all successful
municipalities. If any call failed, has an attribute "failed" (tibble
with iteration, id, error).
Other SICONFI:
get_anexos(),
get_dca(),
get_dca_for_state(),
get_entes(),
get_extrato(),
get_msc_controle(),
get_msc_orcamentaria(),
get_msc_patrimonial(),
get_rgf(),
get_rgf_for_state(),
get_rreo()
## Not run:
rreo_es <- get_rreo_for_state(
state_uf = "ES", an_exercicio = 2021, nr_periodo = 6,
co_tipo_demonstrativo = "RREO", no_anexo = "RREO-Anexo 01"
)
attr(rreo_es, "failed")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.