Returns a new genpca object retaining only the first ncomp components.
All component-indexed slots (v, s, sdev, ov, ou, u, propv,
cumv) are sliced consistently; the preprocessing object and constraint
matrices are carried over unchanged.
Usage
# S3 method for class 'genpca'
truncate(x, ncomp)