Skip to contents

Perform PCA with fixed sign for interpretability

Usage

apply_pca(x, retx = T, center = F, scale. = F, tol = NULL, rank. = NULL, ...)

Arguments

x

A data frame or matrix.

retx, center, scale., tol, rank., ...

Passed to `prcomp()`.

Value

A modified PCA object with signs adjusted.