cor_text: Format text of a correlation matrix

View source: R/main.R

cor_textR Documentation

Format text of a correlation matrix

Description

Format text of a correlation matrix

Usage

cor_text(r, digits = 2, remove_leading_zero = TRUE, remove_diagonal = FALSE)

Arguments

r

a matrix of correlations

digits

Number of digits to round

remove_leading_zero

If TRUE, remove leading zero from all correlations

remove_diagonal

If TRUE, remove diagonal of ones

Value

a matrix of correlations as text

Examples

cor_text(matrix(.5,2,2))

wjschne/WJSmisc documentation built on June 29, 2023, 8:04 a.m.