MAT_half | R Documentation |
Returns a vector with the values in one half of the matrix. Which half and whether diagonal values are included can be specified.
MAT_half(x, lower = T, diag = F)
x |
A matrix or matrix-coercable object. |
lower |
Whether to extract the lower half. Defaults to T. If F, then the upper half is extracted. |
diag |
Whether the diagonal values should be included or not. Defaults to F. |
cor(iris[-5]) #can't summarize this data due to diagonal
MAT_half(cor(iris[-5])) #this data we can
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.