R/files.R
read_events_compumedics.Rd
Read a stages export from Compumedics software in .txt format.
read_events_compumedics(
txt,
startTime = as.POSIXlt("2000-01-01"),
labels = c(AWA = 0, N1 = 1, N2 = 2, N3 = 3, REM = 5)
)
txt file path.
Character string or date object of the hypnogram start.
Labels and values as a named list. Defaults to c("AWA" = 0, "N1" = 1, "N2" = 2, "N3" = 3, "REM" = 5).
A dataframe of stages.