transform.PCA {hana.ml.r}R Documentation

Make Projection from a "PCA" Object

Description

Similar to other transform methods, this function transforms values from a "PCA" object.

Usage

## S3 method for class 'PCA'
transform(model, data, key, features = NULL,
  n.components = NULL, formula = NULL, scaling = NULL, ...)

Arguments

model

PCA R6 model
The model you want to transform

data

DataFrame
Data to be analyzed.

key

character
Name of the ID column.

features

list of character, optional
Names of the feature columns. If features is not provided, it defaults to all non-ID columns.

n.components

integer, optional
Number of components to be retained.
The value range is from 1 to number of features.
Defaults to number of features.

formula

R formula

scaling

logical, optional
If TRUE, scale variables to have unit variance before the analysis
takes place.
Defaults to FALSE.

Value

DataFrame
Transformed variable values corresponding to each data point, structured as follows:

See Also

hanaml.PCA


[Package hana.ml.r version 1.0.8 Index]