Calculate sleep micro architecture parameters
Arguments
- hypnogram_file
A character array with sleep stages
- epoch_duration
Duration of sleep epoch in seconds
Examples
sleep_data <- fetch_sleep_params(hypnogram_file = c('W' ,'W','N1','N2','N2','N3','R'),
epoch_duration = 30)