formatR: Pretty formatting of correlation coefficients

formatRR Documentation

Pretty formatting of correlation coefficients

Description

Pretty formatting of correlation coefficients

Usage

formatR(r, digits = 2)

Arguments

r

The Pearson correlation to format.

digits

The number of digits to round to.

Value

The formatted correlation.

See Also

noZero(), formatCI(), formatPvalue()

Examples

formatR(cor(mtcars$mpg, mtcars$disp));

ufs documentation built on July 9, 2023, 6:07 p.m.

Related to formatR in ufs...