sm_tidy_pca: Create a data frame of principal components

Description Usage Arguments

View source: R/matrix.R

Description

Create a data frame of principal components

Usage

1
sm_tidy_pca(x, n = 3, scale = TRUE, item_name = "document")

Arguments

x

the matrix to compute principal components from.

n

number of components to compute

scale

logical; should columns by scaled before PCA

item_name

name to give to the set of rows; defaults to "document"


statsmaths/smodels documentation built on Jan. 9, 2021, 1:07 p.m.