download_flights_data {flightsbr} | R Documentation |
Download and read ANAC flight data
download_flights_data(
file_url = parent.frame()$file_url,
showProgress = parent.frame()$showProgress,
select = parent.frame()$select,
cache = parent.frame()$cache
)
file_url |
String. A url passed from |
showProgress |
Logical, passed from |
select |
A vector of column names or numbers to keep, passed from |
cache |
Logical, passed from |
A "data.table" "data.frame"
object
## Not run: if (interactive()) {
# Generate url
file_url <- get_flights_url(type='basica', year=2000, month=11)
# download data
a <- download_flights_data(file_url=file_url, showProgress=TRUE, select=NULL)
}
## End(Not run)