Learn R Programming

papaja (version 0.1.2)

apa_df: 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)

Value

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

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.

See Also

apa_num(), apa_p()

Examples

Run this code
apa_df(c(1, 1.23151))

Run the code above in your browser using DataLab