shave {corrr} | R Documentation |
Shave off upper/lower triangle.
Description
Convert the upper or lower triangle of a correlation data frame (cor_df) to missing values.
Usage
shave(x, upper = TRUE)
Arguments
x |
cor_df. See |
upper |
Boolean. If TRUE, set upper triangle to NA; lower triangle if FALSE. |
Value
cor_df. See correlate
.
Examples
x <- correlate(mtcars)
shave(x) # Default; shave upper triangle
shave(x, upper = FALSE) # shave lower triangle
[Package corrr version 0.4.4 Index]