| flag_implausible_sleep | R Documentation |
Identifies days containing implausible sleep periods by detecting sequences of heart rate issues that immediate follow sleep runs. A sleep period is considered implausible when a sufficiently long run of HR-flagged "awake" minutes immediate follows a sleep run that contained no HR issues, suggesting the device may have been have been removed or malfunctioned during what was recorded as sleep.
flag_implausible_sleep(dt, min_minutes = 30, epoch_seconds = 60)
dt |
tbl. Data frame with |
min_minutes |
numeric, positive whole number. Minimum number of consecutive HR-flagged "awake" minutes required to flag an implausible sleep period. |
epoch_seconds |
numeric, positive whole number. Duration of each epoch in seconds. |
tbl. A dataframe that returns a row for each flagged implausible sleep event:
participant_id: Participant identifier.
dtt: Timestamp of the start of the flagged HR issue run.
input: output of identify_hr_exclusions; need exclusions flags
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.