snoring_stats: Get snoring events related stats in a named vector.

Description Usage Arguments Value Examples

Description

snoring_stats computes snoring related stats.

Usage

1
snoring_stats(e, ss = c("N1", "N2", "N3", "REM"))

Arguments

e

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

ss

sleep labels.

Value

named vector

Examples

1
2
3
4
e <- data.frame(begin = as.POSIXlt(c(1536967800,1536967830,1536967810),origin = "1970-01-01"))
e$end <- as.POSIXlt(c(1536967830,1536967860,1536967820), origin = "1970-01-01")
e$event = c("N3","N3","Train de ronflements")
snoring_stats(e)

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