Last data update: 2014.03.03

R: function to load and format flight data
flightsR Documentation

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

Details

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

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

Source

http://www.munich-airport.de/de/consumer/fluginfo/abflug/index.jsp http://www.munich-airport.de/de/consumer/fluginfo/ankunft/index.jsp

Examples

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

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(MUCflights)
Loading required package: XML
Loading required package: geosphere
Loading required package: sp
Loading required package: RSQLite
Loading required package: DBI
Loading required package: NightDay
Loading required package: maps

 # maps v3.1: updated 'world': all lakes moved to separate new #
 # 'lakes' database. Type '?world' or 'news(package="maps")'.  #


> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/MUCflights/flights.Rd_%03d_medium.png", width=480, height=480)
> ### Name: flights
> ### Title: function to load and format flight data
> ### Aliases: flights
> ### Keywords: loading format
> 
> ### ** Examples
> 
> flight.info <- flights(from = "2011-01-07", to = "2011-01-08")
> head(flight.info)
      lsk     fnr                            lvg ha1 ha2 ha3             haf
52126   L SQ  328 Singapore Airlines             SIN                Singapur
52127   L LH 2557 Lufthansa                      TBS                  Tiflis
52128   L LH 1789 Lufthansa                      YEI                   Bursa
52129   L LH  765 Lufthansa                      BOM         Mumbai (Bombay)
52130   L QR  009 Qatar Airways                  DOH                    Doha
52131   L LH 2541 Lufthansa                      LED           St.Petersburg
                hafen                 stt                 ett
52126       Singapore 2011-01-07 05:10:00 2011-01-07 05:10:00
52127         Tbilisi 2011-01-07 05:55:00 2011-01-07 05:40:00
52128           Bursa 2011-01-07 05:55:00 2011-01-07 05:35:00
52129 Mumbai (Bombay) 2011-01-07 06:00:00 2011-01-07 07:50:00
52130            Doha 2011-01-07 06:45:00 2011-01-07 06:35:00
52131   St Petersburg 2011-01-07 06:50:00 2011-01-07 08:20:00
                       lde                  len ter ber  typ ver saa gat
52126             Singapur             Singapur   2   H B77W      49 I32
52127             Georgien             Georgien   2   H A319 100  49 I30
52128               T}rkei               T}rkei   2   H CRJ9      49    
52129               Indien               Indien   2   H A343      49 I08
52130                Katar                Katar   2   H A332      49 I38
52131 Russische F|deration Russische F|deration   2   H A320 200  49 I20
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>