Description Usage Arguments Value Examples
A sleep stages transition matrix contains the probabilities of next stage transition for a given stage.
1 |
e |
Events dataframe. Dataframe must have |
l |
Stages labels. Defaults to |
A matrix.
1 2 3 4 | e <- data.frame(begin = as.POSIXlt(seq(from = 0, to = 30*10, by = 30),origin = "1970-01-01"))
e$end <- as.POSIXlt(seq(from = 30, to = 30*11, by = 30), origin = "1970-01-01")
e$event = c("AWA","N1","N2","N3","N3","REM","N2","REM","N2","REM","AWA")
tm(e)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.