make_AP2 {himach}R Documentation

Make airport-pair dataset

Description

make_AP2 creates an airport-pair set from two sets of airports

Usage

make_AP2(adep, ades, ap = make_airports())

Arguments

adep, ades

Identical-length lists of airport codes

ap

List of locations of airports, defaults to the output of make_airports.

Details

This function takes two lists of airports (of the same length), specified as 4-letter codes and combines them, adding the fields:

In AP2 European airports (crudely, from starting letter = 'E' or 'L') are listed first, otherwise in alphabetical order. If unidirectional is TRUE, then ">" is the separator, otherwise "<>". (Unidirectional not currently supported)

For more details see the introductory vignette.

Value

Dataframe with additional variables as described above.

Examples


airports <- make_airports() #get a default set of lat-longs
ap2 <- make_AP2("NZAA","NZCH", airports)


[Package himach version 0.3.2 Index]