flightsbr is a R package to download flight and airport data from Brazil’s Civil Aviation Agency (ANAC). The data includes detailed information all airports and aerodromes registered in ANAC, and on every international flight to and from Brazil, as well as domestic flights within the country.
# From CRAN
install.packages("flightsbr")
# or use the development version with latest features
utils::remove.packages('flightsbr')
devtools::install_github("ipeaGIT/flightsbr")
The package currently includes two main functions:
# flights in a given month/year (yyyymm)
df_201506 <- read_flights(date=201506, showProgress = FALSE)
# flights in a given year (yyyy)
df_2015 <- read_flights(date=2015, showProgress = FALSE)
airports_all <- flightsbr::read_airports(type = 'all', showProgress = FALSE)
airports_prv <- flightsbr::read_airports(type = 'private', showProgress = FALSE)
airports_pbl <- flightsbr::read_airports(type = 'public', showProgress = FALSE)
Original data is collected by Brazil’s Civil Aviation Agency (ANAC). The flightsbr package is developed by a team at the Institute for Applied Economic Research (Ipea), Brazil. If you want to cite this package, you can cite it as:
- Pereira, R.H.M. (2022) flightsbr: Download Flight Data from Brazil. GitHub repository - https://github.com/ipeaGIT/flightsbr.