apa_p: Prepare Numeric Values for Printing as p value

View source: R/apa_num.R

apa_pR Documentation

Prepare Numeric Values for Printing as p value

Description

Convenience wrapper for apa_num to print p values.

Usage

apa_p(x, digits = 3L, na_string = "", add_equals = FALSE)

printp(x, digits = 3L, na_string = "", add_equals = FALSE)

print_p(x, digits = 3L, na_string = "", add_equals = FALSE)

Arguments

x

Numeric. The p value(s) to report.

digits

Integer. The desired number of digits after the decimal point, passed on to formatC.

na_string

Character. String to print if any element of x is NA.

add_equals

Logical. Indicates if the output string should be prepended with an =.

Value

An object of the same class as x with all numeric values converted to character.

See Also

apa_num(), apa_df()

Examples

apa_p(0.05)
apa_p(0.0005)
apa_p(0.99999999)
apa_p(c(.001, 0), add_equals = TRUE)

crsh/papaja documentation built on Feb. 21, 2024, 6:11 p.m.