knitr::opts_chunk$set(fig.width=8, fig.height=4, echo=FALSE, warning=FALSE, message=FALSE) # rmarkdown::render("tableOne.Rmd", "pdf_document") # to render as PDF
Patient number 368 does not have an annotated sex or age in the COG CDEs.
require(bifurcatoR) data(dxsmall, package="bifurcatoR") covs <- as.data.frame(colData(dxsmall))
Tabulate age group, sex, protocol, and outcome overall. NA will be tabulated whenever present.
if (requireNamespace("tableone")) { CreateTableOne(data=covs, includeNA=TRUE) }
Tabulate age group, sex, and outcome per trial
if (requireNamespace("tableone")) { CreateTableOne(data=subset(covs), strata="Protocol", includeNA=TRUE) }
Tabulate age group, sex, protocol, and outcome by fusion group
if (requireNamespace("tableone")) { CreateTableOne(data=subset(covs), strata="FusionGroup", includeNA=TRUE) }
Tabulate age group, sex, protocol, and outcome by fusion group and trial.
if (requireNamespace("tableone")) { CreateTableOne(data=subset(covs), strata=c("FusionGroup","Protocol"), includeNA=TRUE) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.