formatR: Pretty formatting of correlation coefficients

Description Usage Arguments Value See Also Examples

Description

Pretty formatting of correlation coefficients

Usage

1
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

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

Matherion/ufs documentation built on May 17, 2019, 12:49 p.m.