exclude_components: Use Single Value Decomposition to reduce information in a...

Description Usage Arguments Value Examples

View source: R/svdtools.R

Description

Take a numerical matrix and return a matrix produced by leaving out specified components

Usage

1
exclude_components(mat, exclude = 2:num_components(mat))

Arguments

mat

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

exclude

A vector of integers specifying the components to exclude, defaults to all but the first

Value

A matrix or an error if the inputs are illogical

Examples

1
2
3
4
5
6
7
# Uses matrix made from the Linux Penguin: Attribution: Larry Ewing <lewing@isc.tamu.edu>
## Not run: 
image(noisymatrix, col=gray.colors(65536))
cleanmatrix<-exclude_components(noisymatrix,50:250)
image(cleanmatrix, col=gray.colors(65536))

## End(Not run)

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