Retrieves data from the Fiscal Management Report (RGF) for specific filtering criteria. The RGF contains information about personnel expenses, debt, credit operations, and other fiscal indicators.
get_rgf(
an_exercicio,
in_periodicidade,
nr_periodo,
co_tipo_demonstrativo,
no_anexo,
co_esfera,
co_poder,
id_ente,
use_cache = TRUE,
verbose = FALSE,
page_size = NULL,
max_rows = Inf
)get_fiscal_report(fiscal_year, periodicity, period, report_type,
appendix, sphere, branch, entity_id, use_cache = TRUE, verbose = FALSE,
page_size = NULL, max_rows = Inf)
A tibble with RGF data.
Integer. Fiscal year (e.g., 2022). Required.
Character. Periodicity: "Q" (four-monthly) or
"S" (semi-annual). Required.
Integer. Period number (1-3 for four-monthly, 1-2 for semi-annual). Required.
Character. Report type: "RGF" or
"RGF Simplificado". Required.
Character. Appendix name (e.g., "RGF-Anexo 01").
Required.
Character. Government sphere: "M" (municipalities),
"E" (states), or "U" (union). Required.
Character. Government branch: "E" (executive),
"L" (legislative), "J" (judiciary), "M" (public ministry),
"D" (public defender). Required.
Integer. IBGE code of the entity. Required.
Logical. If TRUE (default), uses an in-memory cache.
Logical. If TRUE, prints the full API URL being
called. Useful for debugging or testing in a browser. Defaults to
getOption("tesouror.verbose", FALSE).
Integer or NULL. Number of rows per API page.
If NULL (default), uses the API server default (5000 for
SICONFI/SADIPEM).
Numeric. Maximum number of rows to return. Defaults
to Inf (all rows). Useful for quick tests with large datasets
(e.g., max_rows = 100).
Integer. Fiscal year (e.g., 2022). Required.
Maps to an_exercicio.
Character. Periodicity: "Q" (quadrimester) or
"S" (semester). Required. Maps to in_periodicidade.
Integer. Period number: 1-3 (quadrimester) or
1-2 (semester). Required. Maps to nr_periodo.
Character. Report type: "RGF" or
"RGF Simplificado". Required. Maps to co_tipo_demonstrativo.
Character. Appendix name (e.g., "RGF-Anexo 01").
Required. Maps to no_anexo.
Character. Government sphere: "M", "E", or "U".
Required. Maps to co_esfera.
Character. Government branch: "E" (executive),
"L" (legislative), "J" (judiciary), "M" (public ministry),
"D" (public defender). Required. Maps to co_poder.
Integer. IBGE code of the entity. Required.
Maps to id_ente.
get_fiscal_report() is an English-parameter alias for this function.
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_for_state(),
get_rreo(),
get_rreo_for_state()
if (FALSE) {
rgf <- get_rgf(
an_exercicio = 2022, in_periodicidade = "Q", nr_periodo = 3,
co_tipo_demonstrativo = "RGF", no_anexo = "RGF-Anexo 01",
co_esfera = "E", co_poder = "E", id_ente = 17
)
}
Run the code above in your browser using DataLab