print_ttest: Format t-test results

Description Usage Arguments Value Examples

View source: R/print_ttest.R

Description

Taking tidy results from a t-test, this function will create a string ready for you to use in your paper.

Usage

1
print_ttest(tidy_ttest, digits = 2, ci = TRUE, ptype = "full")

Arguments

tidy_ttest

Tidy data-frame with t-test results from broom::tidy(t.test()).

digits

Number of significant digits.

ci

Should confidence intervals be printed? Default: TRUE.

ptype

Should p-values be presented in full or with a cutoff?

Value

A character vector.

Examples

1
2
3
4
5
6
## Not run: 
if(interactive()){

 }

## End(Not run)

jcpsantiago/paprHelper documentation built on May 17, 2019, 7:28 p.m.