apa_df: Typeset Degrees of Freedom

View source: R/apa_num.R

apa_dfR Documentation

Typeset Degrees of Freedom

Description

This is a function for processing degrees of freedom. It takes care that trailing digits are only printed if non-integer values are given.

Usage

apa_df(x, digits = 2L, big.mark = "", elementwise = TRUE)

print_df(x, digits = 2L, big.mark = "", elementwise = TRUE)

Arguments

x

Numeric. The degrees of freedom to report.

digits

Integer. The desired number of digits after the decimal point to be used if x contains non-integer values.

big.mark

character; if not empty used as mark between every big.interval decimals before (hence big) the decimal point.

elementwise

Logical. Determines whether the number of trailing digits should be determined for each element of x separately (the default), or for the complete vector x.

Value

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

See Also

apa_num(), apa_p()

Examples

apa_df(c(1, 1.23151))

papaja documentation built on Oct. 30, 2024, 9:09 a.m.