pipe_pca: Apply PCA to a subset of the columns in a dataset

Description Usage Arguments Value

Description

Apply PCA to a subset of the columns in a dataset

Usage

1
pipe_pca(train, columns, pca_tol = 0.1, keep_old_columns = F)

Arguments

train

The train dataset, as a data.frame or data.table. Data.tables may be changed by reference.

columns

Columns to use in the PCA transformation.

pca_tol

The tol of prcomp

keep_old_columns

Flag indicating if columns used to perform the PCA transformation should be kept.

Value

A list containing the transformed train dataset and a trained pipe.


jeroenvdhoven/datapiper documentation built on July 14, 2019, 9:34 p.m.