maxmatrix | R Documentation |
return position and value of the largest element of a correlation matrix R (without taking into account the diagonal elements)
maxmatrix(R)
R |
a square symmetric numeric matrix |
a list with components
row |
row index of maximum |
col |
col index of maximum |
val |
value of maximum, i.e. |
sca
, also for references
data(reflexesC)
maxmatrix(reflexesC) # -> 0.98 at [1, 2]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.