View source: R/GridProcessing.R
grid_trace | R Documentation |
Returns the sum of all cells on either a grid's main diagonal (trace) or its secondary diagonal.
grid_trace(mat, col = NULL, limesurvey = TRUE)
mat |
a square matrix. |
col |
the number of columns of the matrix. |
limesurvey |
logical. If |
The sum of the matrix's diagonal, either from top-left to bottom-right (the default) or from bottom-left to top-right.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.