read_flights {flightsbr} | R Documentation |
Download flight data from Brazil
Description
Download flight data from Brazil’s Civil Aviation Agency (ANAC). The data includes detailed information on every international flight to and from Brazil, as well as domestic flights within the country. The data include flight-level information of airports of origin and destination, flight duration, aircraft type, payload, and the number of passengers, and several other variables. A description of all variables included in the data is available at https://www.gov.br/anac/pt-br/assuntos/regulados/empresas-aereas/Instrucoes-para-a-elaboracao-e-apresentacao-das-demonstracoes-contabeis/descricao-de-variaveis.
Usage
read_flights(
date = 202001,
type = "basica",
showProgress = TRUE,
select = NULL,
cache = TRUE
)
Arguments
date |
Numeric. Date of the data in the format |
type |
String. Whether the data set should be of the type |
showProgress |
Logical. Defaults to |
select |
A vector of column names or positions to keep. The rest of the columns are not read. The order that the columns passed determines the order of the columns in the result. |
cache |
Logical. Whether the function should read cached data downloaded
previously. Defaults to |
Value
A "data.table" "data.frame"
object. All columns are returned with
class
of type "character"
.
See Also
Other download flight data:
read_aircrafts()
Examples
## Not run: if (interactive()) {
# Read flights data
f201506 <- read_flights(date = 201506)
f2015 <- read_flights(date = 2015)
}
## End(Not run)