Description Usage Arguments Details Value Examples
A simple function returning upper or lower matrix triangle. Remaining triangle is replaced with NAs.
1 | get_triangle(cormat, part = "upper")
|
cormat |
Usually correlation matrix |
part |
Single string vector decide whether to return |
The functions as a wrapper on lower.tri
and
upper.tri
functions.
Object of dimensions dim(cormat)
with NA
values being
present in lower or upper triangle.
1 2 | M <- matrix(1:20, 5, 5)
get_triangle(cormat = M, part = "upper")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.