dataConvert: dataConvert

View source: R/medltmle_HelperFun.R

dataConvertR Documentation

dataConvert

Description

Function to convert wide to long, or long to wide dataframe.

Usage

dataConvert(data, nBCov, type)

Arguments

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.

Value

Dataframe object of the original data in a long or wide format.


podTockom/medltmle documentation built on Aug. 9, 2022, 9:32 a.m.