View source: R/pretty_round_r.R
pretty_round_r | R Documentation |
Round correlation coefficients in APA style (7th Ed.)
pretty_round_r(r = NULL, round_digits_after_decimal = 2)
r |
a (vector of) correlation coefficient(s) |
round_digits_after_decimal |
how many digits after the decimal point should the p-value be rounded to? (default = 2) |
the output will be a character vector of correlation coefficient(s).
pretty_round_r(r = -0.123)
pretty_round_r(c(-0.12345, 0.45678), round_digits_after_decimal = 3)
pretty_round_r(c(-0.12, 0.45), round_digits_after_decimal = 4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.