flights: Load flights data

Description Usage Arguments Details Value References See Also Examples

Description

Function to load flights data from downloaded flight logs

Usage

1
2
flights (year = 2014L, month = 1:12, path = "./", dir = "flights", 
    select = NULL, verbose = TRUE) 

Arguments

year

Year for which the logs should be downloaded. Numeric vector of length=1.

month

Months for which logs should be downloaded for the given year.

path

Path excluding the directory to download logs to.

dir

Directory within path where the logs will be downloaded to.

select

Columns to read in. Default will read all 100+ columns.

verbose

TRUE provide messages to the console.

Details

It loads the entire data; all the 100+ columns corresponding to all airports for the specified duration.

Value

A data.table.

References

https://github.com/hadley/nycflights13

See Also

downloadflightlogs, nycflights14, nycdelays14, nycweatherdelays14

Examples

1
2
3
4
## Not run: 
dt = flights(year=2014, month=1:2, path="~/Downloads")

## End(Not run)

arunsrinivasan/flights documentation built on May 12, 2019, 3:42 a.m.