powered by
Pretty formatting of correlation coefficients
formatR(r, digits = 2)
The formatted correlation.
The Pearson correlation to format.
The number of digits to round to.
noZero(), formatCI(), formatPvalue()
noZero()
formatCI()
formatPvalue()
formatR(cor(mtcars$mpg, mtcars$disp));
Run the code above in your browser using DataLab