read_trips_data {bysykkel} | R Documentation |
Read historical bike trips data in Norway to R
Description
read_trips_data
imports anonymized historical bike trips data in
Norway for the city of Oslo, Bergen, and Trondheim directly to R.
The data is provided according to the Norwegian License for Open Government Data 2.0 NLOD 2.0.
The data is read from:
Usage
read_trips_data(year, month, city)
Arguments
year |
A number. The year that you want to download data for. |
month |
A number. The month that you want to download data for. |
city |
A string. The city you want to download data from. The options are "Oslo", "Bergen", and "Trondheim". |
Value
The function reads in bike trips data for the specified year, month, and city to R as a tibble.
Examples
## Not run:
# Read bike trips data for the month of January 2019 in Bergen
bergen_trips <- read_trips_data(2019, 1, "Bergen")
# Read bike trips data for the month of October 2018 in Trondheim
trondheim_trips <- read_trips_data(2018, 10, "Trondheim")
## End(Not run)
[Package bysykkel version 0.3.1 Index]