diag | R Documentation |
Extract or replace the diagonal of a square lazy matrix.
## S4 method for signature 'lazyMatrix' diag(x) ## S4 replacement method for signature 'lazyMatrix,lazyVector' diag(x) <- value
x |
a square lazy matrix |
value |
a lazy vector |
The diagonal of x
as a lazy vector, or the modified matrix.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.