Add a tablecloth.
devtools::install_github("jrcalabrese/tablecloth")
library(tablecloth)
The tablecloth is a collection of functions to help create and format APA-style tables.
If you have questions or comments, feel free to DM me on Twitter @jrosecalabrese
.
Hexsticker created with Guangchuang Yu's hexSticker
package.
library(tablecloth)
library(mice)
data(nhanes)
imp <- mice::mice(nhanes, m = 5, print = FALSE)
vs <- c("bmi", "chl", "age")
nm <- c("BMI", "Cholesterol", "Age")
title <- "Table 1: Descriptive statistics"
mice_df(imp = imp,
vs = vs,
title = title,
nm = nm)
data(nhanes)
imp <- mice::mice(nhanes, m = 5, print = FALSE)
vs <- c("bmi", "chl", "age", "hyp")
title <- "Table 2: Correlation matrix"
mice_cor(imp = imp,
vs = vs,
title = title)