Sum of the main diagonal elements.
a square matrix
Sums the elements of the main diagonal of areal or complrx square matrix.
The corresponding function in Matlab/Octave is called trace(), but this in R has a different meaning.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.