dl_bikedata: Download hire bicycle data
Usage
dl_bikedata(city, data_dir = tempdir(), dates = NULL, quiet = FALSE)download_bikedata(city, data_dir = tempdir(), dates = NULL, quiet = FALSE)
Arguments
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
Details
This function produces (generally) 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:
Boston (bo) |
Hubway |
Chicago (ch) |
Divvy Bikes |
Washington, D.C. (dc) |
Capital Bike Share |
Los Angeles (la) |
Metro Bike Share |
London (lo) |
Santander Cycles |
Minnesota (mn) |
NiceRide |
New York City (ny) |
Citibike |
Philadelphia (ph) |
Indego |
San Francisco Bay Area (sf) |
Ford GoBike |
Ensure you have a fast internet connection and at least 100 Mb space
Examples
Run this code# NOT RUN {
dl_bikedata (city = 'New York City USA', dates = 201601:201613)
# }
Run the code above in your browser using DataLab