Download Viagens

download_viagens(year = NULL, interactive = TRUE, file = 5, ...)

Arguments

year

integer between 2013 and 2019

interactive

a boolean. If TRUE, then file will be ignored.

file

Which file do you want to access? The options are: 1 for Pagamento, 2 for Passagem, 3 for Trecho, 4 for Viagem or 5 for a merged file using all these information. This parameter will only be used if interactive = FALSE.

...

additional parameters

Value

data.table

Examples

if (FALSE) { (x <- download_viagens(year = 2018)) (x <- download_viagens(year = 2017:2018)) (x <- download_viagens(year = 2014, interactive = F, file = 3)) }