Skip to contents

Calculate sleep micro architecture parameters

Usage

fetch_sleep_params(hypnogram_file, epoch_duration)

Arguments

hypnogram_file

A character array with sleep stages

epoch_duration

Duration of sleep epoch in seconds

Value

A data frame with 32 columns

Examples

sleep_data <- fetch_sleep_params(hypnogram_file = c('W' ,'W','N1','N2','N2','N3','R'),
epoch_duration = 30)