Example Hypnogram Datasets
hypnogram_single.Rd
These datasets contain example hypnograms used for testing sleep cycle detection functions.
Format
hypnogram_single
: A data frame with 954 rows and 2 columns:- epoch
Sequential sleep epoch (numeric).
- stage
Sleep stage (character: "N3", "N2", "N1", "R", "W").
hypnogram_grouped
: A data frame with 1912 rows and 3 columns:- epoch
Sequential sleep epoch (numeric).
- stage
Sleep stage (character: "N3", "N2", "N1", "R", "W").
- id
Subject ID.
Details
hypnogram_single
: A single-subject hypnogram.hypnogram_grouped
: A multi-subject hypnogram with anid
column.
Examples
# Load the single-subject dataset
data(hypnogram_single)
head(hypnogram_single)
#> epoch stage
#> 1 1 W
#> 2 2 W
#> 3 3 W
#> 4 4 W
#> 5 5 W
#> 6 6 W
# Load the multi-subject dataset
data(hypnogram_grouped)
head(hypnogram_grouped)
#> epoch stage id
#> 1 1 W 1
#> 2 2 W 1
#> 3 3 W 1
#> 4 4 W 1
#> 5 5 W 1
#> 6 6 W 1