mathiasfls / flightsbr

R package to download flight data from Brazil

Home Page:https://ipeagit.github.io/flightsbr/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

flightsbr: Download Flight And Airport Data from Brazil logo

CRAN status R-CMD-check Lifecycle: experimental CRAN/METACRAN Total downloads

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.

Installation

# From CRAN
  install.packages("flightsbr")

# or use the development version with latest features
  utils::remove.packages('flightsbr')
  devtools::install_github("ipeaGIT/flightsbr")

Basic usage

The package currently includes two main functions:

read_flights() to download national and international flights.

# 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)

read_airports() to download private and public airports.

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)

Acknowledgement IPEA

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:

About

R package to download flight data from Brazil

https://ipeagit.github.io/flightsbr/

License:Other


Languages

Language:R 100.0%