powered by
Finds the four TAR columns and creates a new column called tar that pastes the columns into a nice string
addTarColumn(data)
The data data.frame object with the tar column added if seperate TAR columns are found
The data.frame with the individual TAR columns that you want to combine into one column
Create a friendly single tar column
Other helper: formatBinaryCovariateName(), getExampleConnectionDetails(), getOutcomeTable(), getTargetTable(), kableDark(), printReactable(), removeSpaces()
formatBinaryCovariateName()
getExampleConnectionDetails()
getOutcomeTable()
getTargetTable()
kableDark()
printReactable()
removeSpaces()
addTarColumn(data.frame( tarStartWith = 'cohort start', tarStartOffset = 1, tarEndWith = 'cohort start', tarEndOffset = 0 ))
Run the code above in your browser using DataLab