shave | R Documentation |
Convert the upper or lower triangle of a correlation data frame (cor_df) to missing values.
shave(x, upper = TRUE)
x |
cor_df. See |
upper |
Boolean. If TRUE, set upper triangle to NA; lower triangle if FALSE. |
cor_df. See correlate
.
x <- correlate(mtcars) shave(x) # Default; shave upper triangle shave(x, upper = FALSE) # shave lower triangle
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.