APA_f: Return an F statistic in APA style

Description Usage Arguments Value Examples

Description

APA_f takes a number (numeric or character) and returns it with appropriate APA formatting, with options for print-friendly labelling.

Usage

1
APA_f(stat, type = c("f", "f1", "f2"), digit = 2)

Arguments

stat

A number, supplied as a numeric or character value.

type

Either NULL, to return the just the number; or, if a Latex/rMarkdown-friendly label is desired, one of "f","f1","f2", to return the value with the test label and equal sign prepended (e.g., "\\textitF $=$ stat"; "\\textitF$_1$ $=$ stat"; "\\textitF$_2$ $=$ stat".

digit

How many significant digits (defaults to 2)? Passed to formattable with options format = "f" and digits = digit.

Value

stat as a string with APA formatting and/or other options applied.

Examples

1
# lapply(runif(n = 100, min = 0.10, max = 10.0), APA_f, type = "f")

darrellpenta/APAstyler documentation built on May 14, 2019, 6:10 p.m.