View source: R/simulation_functions.R
| dataOrder | R Documentation |
Orders a user supplied data frame by subject and ordered time variable.
dataOrder(data, datanames=c("id","atime","catime",
"intervention","outcome"))
data |
A data frame structured as those from function
|
datanames |
Names of the five required data variables; participant
identifier, time-point, standardized (continuous) time-point (see
|
Returns an ordered data frame.
data(qol)
oqol <- dataOrder(qol,datanames=c("Subject","Weeks","STime","Treat","QoL"))
head(qol, n=50)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.