| head.msdata | R Documentation |
Return ordinary data rows from an msdata object
## S3 method for class 'msdata'
head(x, n = 6L, ...)
x |
An |
n |
Number of rows to return. |
... |
Ignored. |
An ordinary data.frame containing the first n rows.
Class-specific metadata are intentionally removed from the returned preview,
so it should not be passed to rfmstate(). The source msdata
object is unchanged.
ms <- define_multistate(c("A", "B"), "B", list(A = "B"))
dat <- data.frame(id = 1:3, x = 1:3, time_B = 1:3,
censor = NA_real_)
long <- prepare_data(dat, "id", ms, list(B = "time_B"), "censor", "x")
head(long, 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.