Description Usage Arguments Details Note
Download hire bicycle data
1 | dl_bikedata(city = "nyc", data_dir = tempdir(), dates, quiet = FALSE)
|
city |
City for which to download bike data, or name of corresponding bike system (see Details below). |
data_dir |
Directory to which to download the files |
dates |
Character vector of dates to download data with dates formated as YYYYMM. |
quiet |
If FALSE, progress is displayed on screen |
This function produces zip-compressed data in R's temporary directory. City names are not case sensitive, and must only be long enough to unambiguously designate the desired city. Names of corresponding bike systems can also be given. Currently possible cities (with minimal designations in parentheses) and names of bike hire systems are:
New York City (ny) | Citibike |
Washington, D.C. (dc) | Capital Bike Share |
Chicago (ch) | Divvy Bikes |
Los Angeles (la) | Metro Bike Share |
Boston (bo) | Hubway |
London (lo) | Santander Cycles |
Ensure you have a fast internet connection and at least 100 Mb space
Only files that don't already exist in data_dir
will be
downloaded, and this function may thus be used to update a directory of files
by downloading more recent files. If a particular file request fails,
downloading will continue regardless. To ensure all files are downloaded,
this function may need to be run several times until a message appears
declaring that 'All data files already exist'
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.