Download data from a single table
Usage
vigiar_baixar(
tabela,
colunas = NULL,
ordenar_por = NULL,
limite = NULL,
timeout = 120,
uf = "RJ",
direcao = c("asc", "desc")
)Arguments
- tabela
Table name (use
vigiar_tabelas()to list).- colunas
Optional character vector of column names.
NULL= all.- ordenar_por
Column to sort by (optional).
- limite
Maximum number of rows (optional).
- timeout
Timeout in seconds for the HTTP request.
- uf
UF filter. Filters data client-side. Use
NULLfor no filter. Default"RJ".- direcao
Sort direction:
"asc"(ascending) or"desc"(descending).
Value
A tibble::tibble() with the downloaded data.
Examples
# \dontrun{
vigiar_conectar()
#> Sessao VIGIAR estabelecida. Carregando esquema de dados...
#> Sessao pronta! 30 tabelas disponiveis.
vigiar_status()
#> Dashboard VIGIAR online. Esquema de dados consistente.
dados <- vigiar_baixar("df_anual")
#> ℹ Baixando tabela 'df_anual'...
#> ℹ Filtro UF='RJ' (UF): 0 linhas (de 30000).
#> ✔ Tabela 'df_anual' baixada: 0 linhas x 7 colunas (30.7s)
# }