Learn R Programming

multivarious (version 0.2.0)

truncate: truncate a component fit

Description

take the first n components of a decomposition

Usage

truncate(x, ncomp)

Value

a truncated object (e.g. PCA with 'ncomp' components)

Arguments

x

the object to truncate

ncomp

number of components to retain