Learn R Programming

MUCflights (version 0.0-3)

flights: function to load and format flight data

Description

flights is used for loading the format the flight data from selected days.

Usage

flights(from = NULL, to = NULL, path = system.file("MUCflights.RData", package = "MUCflights"))

Arguments

from
first day which should be loaded
to
last day which should be loaded
path
path the data is located

Value

A data frame with the following 18 variables.
lsk
arrival(L) or departure(S)
fnr
number of the flight
lvg
airline
ha1
IATA
ha2
IATA (stopover)
ha3
IATA (stopover)
haf
from/to (German)
hafen
from/to (English)
stt
scheduled time
ett
estimated time
lde
country
len
country
ter
terminal
ber
area
typ
aircraft type
ver
aircraft type-version
saa
gat
gate

Details

Information of the flights arrived and departured at Munich Franz-Josef-Strauss airport (from http://www.munich-airport.de).

Examples

Run this code
flight.info <- flights(from = "2011-01-07", to = "2011-01-08")
head(flight.info)

Run the code above in your browser using DataLab