Compute PCA of `x` with `k` dimensions.

pca(object, k = 3, convert = TRUE)

Arguments

object

an object to apply PCA

k

number of dimensions

convert

to R matrix

Value

tensor