Description Usage Arguments Examples
This function extracts all diagonal vectors of a matrix and returns the result as a list.
1 |
data |
Matrix from which to extract diagonal elements |
direction |
Which side to begin on? Takes values of one of "left", "right" or "both". Defaults to "right". |
1 2 |
$`-2`
[1] -0.7398676
$`-1`
[1] 1.3014470 -0.8211806
$`0`
[1] -0.1364061 -1.1788488 0.1427320
$`1`
[1] -0.5590616 -0.0878490
$`2`
[1] -0.1569791
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.