num_components: Use return the number of SVD components available in a matrix

Description Usage Arguments Value Examples

View source: R/svdtools.R

Description

Take a numerical matrix and return the number of SVD components available to reduce

Usage

1

Arguments

mat

A numeric matrix or a data frame coercible into a numeric matrix

Value

An integer number of components contained in the matrix

Examples

1
2
3
4
5
# Uses matrix made from the Linux Penguin: Attribution: Larry Ewing <lewing@isc.tamu.edu>
## Not run: 
print(num_components(noisymatrix))

## End(Not run)

jimeharrisjr/svdtools documentation built on Jan. 7, 2021, 12:47 a.m.