report_p: Report p-value

Description Usage Arguments Value Examples

View source: R/report_p.R

Description

Reports a p-value in APA style

Usage

1
report_p(p, digits = 3)

Arguments

p

The p-value

digits

The number of digits to round to (default = 3)

Value

A string with the format "p = .040" or "p < .001"

Examples

1
2
report_p(0.02018) # returns "p = .020"
report_p(0.00028) # returns "p < .001"

johnellis30/demopckg documentation built on March 8, 2021, 12:01 a.m.