rem_stats: Get Rapid-Eye-Movements events related stats in a named...

Description Usage Arguments Value References

Description

Filters events to keep only Rapid-Eye-Movements. occuring during Rapid-Eye-Movements. sleep stage, accoring to the American Academy of Sleep Medicine scoring guidelines.

Available statistics:

rem_count

Count of Rapid-Eye-Movements.

rem_index

Rapid-Eye-Movements index by hour.

rem_avg_duration

Rapid-Eye-Movements average duration. Set to NA in the case no Rapid-Eye-Movements are found.

Usage

1

Arguments

e

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

Value

A named vector.

References

Berry RB, Brooks R, Gamaldo CE, Harding SM, Lloyd RM, Marcus CL and Vaughn BV for the American Academy of Sleep Medicine. The AASM Manual for the Scoring of Sleep and Associated Events: Rules, Terminology and Technical Specifications, Version 2.2. www.aasmnet.org. Darien, Illinois: American Academy of Sleep Medicine, 2015.


boupetch/sleepr documentation built on June 26, 2019, 9:08 a.m.