extractlower: Extract or returning the lower triangular part of the matrix

Description Usage Arguments Examples

View source: R/ultility.R

Description

The function extractlower is to extract the strict lower triangular part of a squared matrix and the function returnlower is to return the vector value into a symmetric matrix with diagonal 1.

Usage

1
2
3

Arguments

A

a matrix to be extracted the lower triangular part

v

a vector to be returned to a symmetric matrix with diagonal 1.

Examples

1
2
3
a = matrix(1:100, 10, 10)
b = extractlower(a)
d = returnlower(b)

xiangjiexue/npfixedcompR documentation built on Jan. 1, 2021, 11:39 p.m.