Fetches annual accounts (DCA) for every municipality of state_uf, looping
over get_dca() with fault tolerance. See get_rreo_for_state() for the
rationale and behaviour of on_error.
Usage
get_dca_for_state(
state_uf,
an_exercicio,
no_anexo = NULL,
include_capital = TRUE,
on_error = c("warn", "stop", "silent"),
use_cache = TRUE,
verbose = FALSE,
page_size = NULL,
max_rows = Inf
)
get_annual_accounts_for_state(state_uf, fiscal_year, appendix = NULL,
include_capital = TRUE, on_error = c("warn", "stop", "silent"),
use_cache = TRUE, verbose = FALSE,
page_size = NULL, max_rows = Inf)Arguments
- state_uf
Character. Two-letter UF code (e.g.,
"PE"). Required.- an_exercicio
Integer. Fiscal year. Required.
- no_anexo
Character. Appendix name filter (e.g.,
"DCA-Anexo I-AB"). Optional.- include_capital
Logical. Include the state capital? Defaults to
TRUE.- on_error
Character.
"warn"(default),"stop", or"silent".- use_cache
Logical.
- verbose
Logical.
- page_size
Integer or
NULL.- max_rows
Numeric.
- fiscal_year
Integer. Fiscal year. Required. Maps to
an_exercicio.- appendix
Character. Appendix name filter. Optional. Maps to
no_anexo.
Value
A tibble with all successful DCA rows. If any
call failed, has an attribute "failed".