View source: R/medltmle_HelperFun.R
dataConvert | R Documentation |
Function to convert wide to long, or long to wide dataframe.
dataConvert(data, nBCov, type)
data |
Dataframe object in a wide format. |
nBCov |
number of baseline covariates. They must the listed before C,A,Z,LA,LZ,Y,D nodes. |
type |
Which format to convert the current data to, long or wide. |
Dataframe object of the original data in a long or wide format.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.