Skip to contents

Downloads data from BTS/RITA/Transtats and imports it into R

Usage

download_t100_int(y = NULL, type = NULL)

Arguments

y

year to be imported

type

"mkt" for Market, "seg" for Segment databases respectively

Value

Called mainly for its side effect: the T-100 data frame, with one row per route and carrier (see import_t100), is assigned to the global environment as T100_year_mkt or T100_year_seg (e.g. T100_2010_mkt) and returned invisibly.

Details

Note: The BTS often changes the way we can access these files. So please be warned that this is still an experimental feature.

Examples

# \donttest{
# Downloads a large file from the BTS website
if(interactive()){
download_t100_int(2010, "mkt")
}
# }