Description Usage Arguments Value Examples
View source: R/diagonal_zero.R
Make the element of a matrix's diagonal line into zero
1 | diagonal_zero(input = matrix())
|
input |
A matrix has the same size of columns and rows |
A matrix with all element of diagonal line zero
1 2 3 4 5 | ## Not run:
A <- matrix(1:100, nrow=10)
A <- diagonal_zero(A)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.