Learn R Programming

nsdr (version 0.1.1)

sym: sym

Description

sym

Usage

sym(a)

Arguments

a

any matrix

Value

symmetrize matrix when matrix is theoretically symmetric but not in numerically

References

Li, B. (2018). Sufficient dimension reduction: Methods and applications with R. CRC Press.

Examples

Run this code
# NOT RUN {
ex <- matrix(c(1.1,2.1,1.2,2.2),2,2)
result <- sym(ex)
# }

Run the code above in your browser using DataLab