Skip to content

jrcalabrese/tablecloth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

An R package to create and format APA-style tables.

Topics

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages