| get_siorg_estrutura | R Documentation |
Retrieves the organizational structure tree for a specific SIORG unit, returning all sub-units (departments, secretariats, etc.) as a flat tibble.
get_siorg_estrutura(
codigo_unidade,
vinculados = NULL,
use_cache = TRUE,
verbose = FALSE
)
get_siorg_structure(unit_code, include_linked = NULL,
use_cache = TRUE, verbose = FALSE)
codigo_unidade |
Integer or character. SIORG code of the unit.
Required. Use |
vinculados |
Character. Return linked organs/entities?
|
use_cache |
Logical. If |
verbose |
Logical. If |
unit_code |
Integer or character. SIORG code. Maps to |
include_linked |
Character. |
Use the returned codes as organizacao_n2 / org_level2 and
organizacao_n3 / org_level3 in CUSTOS API functions.
get_siorg_structure() is an English alias.
A tibble with columns including
codigo_unidade, codigo_unidade_pai, nome, sigla,
codigo_tipo_unidade. Use codigo_unidade_pai to navigate
the parent-child hierarchy.
Other SIORG:
get_siorg_orgaos(),
get_siorg_unidade()
## Not run:
# Get structure of AGU (code 46)
estrutura <- get_siorg_estrutura(codigo_unidade = 46)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.