README.md

tablecloth

Add a tablecloth.

Install package

devtools::install_github("jrcalabrese/tablecloth")
library(tablecloth)

Introduction

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.

mice_df()

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)

mice_cor()

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)



jrcalabrese/tablecloth documentation built on Aug. 21, 2022, 8:40 p.m.