Bike_Remain_His: Retrieve the historical availability data of bike sharing...

Bike_Remain_HisR Documentation

Retrieve the historical availability data of bike sharing system

Description

The function is used to download the historical availability data of bike sharing system for given county and given dates.

Usage

Bike_Remain_His(access_token, county, dates, dtype="text", out=F)

Arguments

access_token

Your access token given by TDX platform. This can be derived from the function get_token().

county

Please fill in the English county name. Checking out the appropriate county name in dataframe TDX_County. Note that some of cities have no bike sharing system, please check it out first.

dates

Please fill the specific dates. It allows to retrieve multiple dates, but note that the limit is 7 days. The format of the date should be YYYY-MM-DD if it is single day. For the multiple dates, each of date should be separated by ;, but if the date is in a specific range, using ~ to connect dates.

out

If the result should be exported to the local, please fill in the directory. The default value is FALSE, which does not export the data. Note that the directory must contain ".csv" or ".txt" when exporting text file.

Author(s)

Maintainer: Chia Jung, Yeh chia-jung.yeh@sydney.edu.au

Examples

Bike_Remain_His(access_token, "Taipei", dates="2022-10-30")
Bike_Remain_His(access_token, "Hsinchu", dates="2022-09-01~2022-09-30", out="./hsinchu_youbike_availability.csv")

ChiaJung-Yeh/NYCU_TDX documentation built on Aug. 28, 2024, 10:43 p.m.