View source: R/sensor_functions.R
last_date | R Documentation |
A helper function for extracting the last date of entry of (of one or all participant) of one sensor. Note that this function is specific to the last date of a sensor. After all, it wouldn't make sense to extract the last date for a participant of the device info, while the last accelerometer measurement occurred a day later.
last_date(db, sensor, participant_id = NULL)
db |
A database connection to an m-Path Sense database. |
sensor |
The name of a sensor. See sensors for a list of available sensors. |
participant_id |
A character string identifying a single participant. Use
|
A string in the format 'YYYY-mm-dd' of the last entry date.
## Not run:
db <- open_db()
first_date(db, "Accelerometer", "12345")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.