tr | R Documentation |
The trace of a square matrix is the sum of the diagonal elements.
tr(x, ...)
## Default S3 method:
tr(x, ...)
x |
If |
... |
further arguments passed to |
(x <- matrix(1:4, ncol = 2))
tr(x)
tr(ysym(x))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.