Description Usage Arguments Value
Retrieves individual pick-ups from the JUMP Bikes database, for a given set of bikes, during a given period. Database credentials are needed for this function.
1 2 3 | query_usage(bikes, from = as.POSIXct("2018-09-10 16:30:00", format =
"%Y-%m-%d %H:%M:%S", tz = "America/Los_Angeles"),
to = Sys.time(), database_user, database_password)
|
bikes |
a vector that contains the ID's of the bikes of interest.
Should be obtained with the |
from |
timestamp of class |
to |
timestamp of class |
database_user |
character defining the user name to access the database. |
database_password |
character defining the password to access the database. |
Returns an object of class sf
, containing all pick-ups,
with geographical location and timestamp.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.