Put together the url of flight data files
Arguments
- type
String. Whether the data set should be of the type
basica
(flight stage, the default) orcombinada
(On flight origin and destination - OFOD).- date
Numeric. Date of the data in the format
yyyymm
. Defaults to202001
. To download the data for all months in a year, the user can pass a 4-digit year inputyyyy
. The parameter also accepts a vector of dates such asc(202001, 202006, 202012)
.
Examples
if (FALSE) if (interactive()) {
# Generate urls
a <- get_flights_url(type='basica', year=2000, month=11)
} # \dontrun{}