makePCATask: Creates a PCATask Object

Description Usage Arguments Value Examples

Description

Principal Components Analysis (PCA). A Task encapsulates the Data with some additional information

Usage

1
2
makePCATask(id, data, target, vars = NULL, exclude = character(0),
  show.NA.msg = FALSE, ...)

Arguments

id

[character(1)]
ID of the Task Object

data

[data.frame]
Data for PCA. Only numeric columns will be used and the target column excluded.

target

[character(1)]
Target column. If not available please insert as NULL.

vars

[character(1)]
Column names

exclude

[character] Names of inputs, which should be excluded. Default is none.

show.NA.msg

[logical(1)]
Logical whether to show missing values message
Default is FALSE.

...

Further arguments passed to prcomp

Value

PCATask

Examples

1
2
3
4
5
data("iris")
pca.task = makePCATask(id = "iris.try", data = iris, target = "Species",
                        tol = 1e-1, center = TRUE)
# get Data
pca.task$env$data

ptl93/AEDA documentation built on May 7, 2019, 3:20 p.m.