download_airfares_data {flightsbr} | R Documentation |
Download and read ANAC air fares data
download_airfares_data(
file_urls = parent.frame()$file_urls,
showProgress = parent.frame()$showProgress,
select = parent.frame()$select,
cache = parent.frame()$cache
)
file_urls |
String. A url passed from |
showProgress |
Logical. Defaults to |
select |
A vector of column names or positions to keep. The rest of the columns are not read. The order that the columns passed determines the order of the columns in the result. |
cache |
Logical. Whether the function should read cached data downloaded
previously. Defaults to |
A "data.table" "data.frame"
object
## Not run: if (interactive()) {
# Generate url
file_url <- get_airfares_url(dom = TRUE, date=200211)
# download data
a <- download_airfares_data(file_urls=file_url, showProgress=TRUE, select=NULL)
}
## End(Not run)