Retrieves data from the Annual Accounts Declaration (DCA) or the legacy QDCC for a specific entity and fiscal year.
Usage
get_dca(
an_exercicio,
id_ente,
no_anexo = NULL,
use_cache = TRUE,
verbose = FALSE,
page_size = NULL,
max_rows = Inf
)
get_annual_accounts(fiscal_year, entity_id, appendix = NULL,
use_cache = TRUE, verbose = FALSE,
page_size = NULL, max_rows = Inf)Arguments
- an_exercicio
Integer. Fiscal year (e.g.,
2022). Required.- id_ente
Integer. IBGE code of the entity. Required.
- no_anexo
Character. Appendix name filter (e.g.,
"DCA-Anexo I-AB"). Optional.- use_cache
Logical. If
TRUE(default), uses an in-memory cache.- verbose
Logical. If
TRUE, prints the full API URL being called. Useful for debugging or testing in a browser. Defaults togetOption("tesouror.verbose", FALSE).- page_size
Integer or
NULL. Number of rows per API page. IfNULL(default), uses the API server default (5000 for SICONFI/SADIPEM).- max_rows
Numeric. Maximum number of rows to return. Defaults to
Inf(all rows). Useful for quick tests with large datasets (e.g.,max_rows = 100).- fiscal_year
Integer. Fiscal year (e.g.,
2022). Required. Maps toan_exercicio.- entity_id
Integer. IBGE code of the entity. Required. Maps to
id_ente.- appendix
Character. Appendix name filter (e.g.,
"DCA-Anexo I-AB"). Optional. Maps tono_anexo.
Value
A tibble with DCA/QDCC data including columns such
as exercicio, instituicao, cod_ibge, uf, anexo, rotulo,
coluna, cod_conta, conta, valor, and populacao.
See also
Other SICONFI:
get_anexos(),
get_entes(),
get_extrato(),
get_msc_controle(),
get_msc_orcamentaria(),
get_msc_patrimonial(),
get_rgf(),
get_rreo()