GithubHelp home page GithubHelp logo

ipeagit / flightsbr Goto Github PK

View Code? Open in Web Editor NEW
40.0 2.0 5.0 11.5 MB

R Package to Download Flight and Airport Data from Brazil

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

License: Other

R 100.00%
rstats data rstats-package aviation-data r brazil

flightsbr's Introduction

flightsbr: Download Flight and Airport Data from Brazil logo

CRAN status R-CMD-check Lifecycle: experimental CRAN/METACRAN Total downloads Codecov test coverage DOI

flightsbr is an R package to download flight and airport data from Brazil’s Civil Aviation Agency (ANAC). The data includes detailed information on all aircrafts, airports, and airport movements registered in ANAC, on airfares 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 five main functions:

  1. read_flights()
  2. read_airports()
  3. read_aircrafts()
  4. read_airport_movements()
  5. read_airfares()

1) read_flights() to download data on national and international flights.

# flights in a given month/year (yyyymm)
df_201506 <- read_flights(date=201506)

# flights in a given year (yyyy)
df_2015 <- read_flights(date=2015)

2) read_airports() to download data on private and public airports.

airports_all <- flightsbr::read_airports(type = 'all')

airports_prv <- flightsbr::read_airports(type = 'private')
airports_pbl <- flightsbr::read_airports(type = 'public')

3) read_aircrafts() to download aircrafts data.

aircrafts <- read_aircrafts()

4) read_airport_movements() to download data on aiport movements.

airport_ops <- read_airport_movements(date = 202001)

5) read_airfares() to download data on airfares of domestic or international flights.

airfares <- read_airfares(date = 202001, domestic = TRUE)

Related projects

As of today, there are two repositories/projects with Brazilian aviation data, which include more info related to weather conditions, air traffic management etc. The advantage of flightsbt is that it's the easiest and fastest way to download flight and airport Data from Brazil in R.

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:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.