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.
Arguments
codigo_unidade
Integer or character. SIORG code of the unit.
Required. Use get_siorg_orgaos() to find codes.
vinculados
Character. Return linked organs/entities?
"SIM" or "NAO". Optional.
use_cache
Logical. If TRUE (default), uses an in-memory cache.
verbose
Logical. If TRUE, prints the full API URL.
Defaults to getOption("tesouror.verbose", FALSE).
unit_code
Integer or character. SIORG code. Maps to codigo_unidade.
include_linked
Character. "SIM" or "NAO". Maps to vinculados.
Details
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.
See Also
Other SIORG:
get_siorg_orgaos(),
get_siorg_unidade()