formatR | R Documentation |
Pretty formatting of correlation coefficients
formatR(r, digits = 2)
r |
The Pearson correlation to format. |
digits |
The number of digits to round to. |
The formatted correlation.
noZero()
, formatCI()
, formatPvalue()
formatR(cor(mtcars$mpg, mtcars$disp));
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.