hypnogram: Filter and reorder an events dataframe to keep only sleep...

Description Usage Arguments Value

Description

Remove non-sleep stages events and reorder dataframe rows using the begin column.

Usage

1
hypnogram(events, labels = c("N3", "N2", "N1", "REM", "AWA"))

Arguments

events

Events dataframe. Dataframe must have begin (POSIXt), end (POSIXt) and event

labels

Sleep stages labels. Defaults to c("N3","N2","N1","REM","AWA").

Value

hypnogram dataframe.


boupetch/rmdf documentation built on June 26, 2019, 2:25 p.m.