R/is_diagonal.R
is.diagonal.Rd
0s on the diagonal are fine.
is.diagonal(x, na.rm = FALSE)
A matrix
TRUE/FALSE TRUE means that NAs on the diagonal are ignored