knitr::opts_chunk$set(echo = TRUE)

This demo is using the knitr package to render an r markdown file

##
library(dplyr, warn.conflicts = FALSE, verbose=FALSE, quietly = TRUE)
library(tidyr, warn.conflicts = FALSE, verbose=FALSE, quietly = TRUE)
library(stringi, warn.conflicts = FALSE, verbose=FALSE, quietly = TRUE)
library(table1, warn.conflicts = FALSE, verbose=FALSE, quietly = TRUE)
table1 <- buildTable1(theData = table1Dat, theVariables = c("age", "sex", "Race", "Ethnicity", "Rank"), groupBy="site", percentFirst = TRUE, combineTables = TRUE, meanDigits = 1, sdDigits = 1, freqDigits = 2, statDigits = 2, pDigits = 5)
knitr::kable(table1, align='r')


svannoy/table1 documentation built on May 30, 2019, 8:45 p.m.