diag: diag

Description Usage Arguments

Description

Create a diagonal matrix from a vector, or alternatively, get the vector of diagonal entries from a matrix.

Usage

1
2
## S4 method for signature 'fmlmat'
diag(x = 1, nrow, ncol, names = TRUE)

Arguments

x

fmlmat vector or matrix.

nrow, ncol

The dimension of the resulting matrix if specified.

names

Ignored.


fml-fam/craze documentation built on June 6, 2020, 2:05 p.m.