Description Usage Arguments Details Value
View source: R/expand_sessions.R
Expand a sessions
dataframe (one row per session) into a dataframe with one row per person-date,
with time recorded on that date. This function handles the messiness of
getting the amount of time recorded for a specific person on a specific day
(since a session start on day 1 and ending on day 3 means that all of day 2 was recorded)
1 2 3 4 5 6 7 8 9 10 11 |
hyfe_data |
A standard |
unit |
The time unit to use. If |
tz |
If |
verbose |
Print status updates? |
Most analyses of Hyfe data hinge upon detailed knowledge of when
Hyfe was actively listening for coughs, and when it wasn’t.
To determine the duration of monitoring on an hourly or daily basis,
use the expand_sessions()
function.
A list with timetable
(a dataframe with one row per person-date or person-hour)
and series
(a dataframe in which each row is a timestamp, and each column is a UID).
By default, series is returned as a NULL object since it is usually only needed
for troubleshooting and can be time-consuming to prepare.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.