| Diagonal | R Documentation | 
DiagonalExtract or replace the diagonal of a matrix, or construct a diagonal matri.
Diagonal(x, off = FALSE)
| x | A  | 
| off | 
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.