Skip to contents

0s on the diagonal are fine.

Usage

is.diagonal(x, na.rm = FALSE)

Arguments

x

A matrix

na.rm

TRUE/FALSE TRUE means that NAs on the diagonal are ignored