Learn R Programming

nsdr (version 0.1.1)

tr: trace

Description

trace

Usage

tr(a)

Arguments

a

any matrix

Value

trace value of the matrix

References

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

Examples

Run this code
# NOT RUN {
mat <- matrix(2,2,2)
tr(mat)
# }

Run the code above in your browser using DataLab