nTri2nDiag: [+] Matrix: length of diagonal when a number of elements in a...

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/nTri2nDiag.R

Description

Calculate a number of diagonal elements of a symmetric matrix when a number elements in a lower/upper triangle is given.

Usage

1
nTri2nDiag(nTri)

Arguments

nTri

A number of elements in a lower/upper triangle of a matrix (excluding the diagonal).

Details

Dedived from equation nCoeff = (n^2-n)/2

Value

A number of rows/columns in a symmetric matrix. May be a fractional number.

Author(s)

Vilmantas Gegzna

See Also

Other matrix operations in spMisc: corr_vec2mat(), indMatrix(), revalueMatrix(), sort_matrix_elements, which.in(), which.max.all(), which.max.perRow()

Examples

1
2

GegznaV/spMisc documentation built on April 26, 2020, 5:59 p.m.