Retrieves the complete list of government entities (entes) registered in the SICONFI system, including states, municipalities, and the Federal District.
get_entes(use_cache = TRUE, verbose = FALSE, page_size = NULL, max_rows = Inf)get_entities(use_cache = TRUE, verbose = FALSE,
page_size = NULL, max_rows = Inf)
A tibble with columns:
IBGE code of the entity.
Name of the entity.
Whether the municipality is a state capital (1 = yes, 0 = no).
Geographic region ("SU", "NE", "NO", "SE", "CO", "BR").
State abbreviation.
Government sphere: "M", "E", "U", "D".
Year of the population data.
Estimated population.
CNPJ of the entity.
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).
get_entities() is an English alias for get_entes().
Other SICONFI:
get_anexos(),
get_dca(),
get_dca_for_state(),
get_extrato(),
get_msc_controle(),
get_msc_orcamentaria(),
get_msc_patrimonial(),
get_rgf(),
get_rgf_for_state(),
get_rreo(),
get_rreo_for_state()
if (FALSE) {
entes <- get_entes()
}
Run the code above in your browser using DataLab