Skip to contents

take the first n components of a decomposition

Usage

truncate(x, ncomp)

Arguments

x

the object to truncate

ncomp

number of components to retain

Value

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