rev_diag | R Documentation |
Get Reverse diagonal of a square matrix
rev_diag(n, x = 1)
n |
number of rows in matrix. Note, this function forces a square matrix with n = p. |
x |
value to place in reverse diagonal. defaults to 1. |
rev_diag(3)
rev_diag(5, TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.