Format numbers as correlation coefficients, by rounding them and removing the leading 0

fmt_cor(cor_value, digits = 2)

Arguments

cor_value

Numeric, or a vector of numbers

digits

Number of significant digits, defaults to 2