Retrieves the complete list of government entities (entes) registered in the SICONFI system, including states, municipalities, and the Federal District.
Usage
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)Arguments
- 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).
Value
A tibble with columns:
- cod_ibge
IBGE code of the entity.
- ente
Name of the entity.
- capital
Whether the municipality is a state capital (1 = yes, 0 = no).
- regiao
Geographic region (
"SU","NE","NO","SE","CO","BR").- uf
State abbreviation.
- esfera
Government sphere:
"M","E","U","D".- an_exercicio
Year of the population data.
- populacao
Estimated population.
- co_cnpj
CNPJ of the entity.
See also
Other SICONFI:
get_anexos(),
get_dca(),
get_extrato(),
get_msc_controle(),
get_msc_orcamentaria(),
get_msc_patrimonial(),
get_rgf(),
get_rreo()