Learn R Programming

rtemis (version 1.4.3)

transformed: Get transformed data from Decomposition

Description

Returns the components a Decomposition computed for the data it was fitted on.

Usage

transformed(x)

Value

data.table: One row per case, one column per component.

Arguments

x

Decomposition: A Decomposition object.

Author

EDG

Details

Each call returns a new data.table, so modifying the result by reference, with := or set(), leaves x unchanged. The columns are the components only, named as in the output of apply_decomposition(), which computes the components of new data.

Examples

Run this code
iris_pca <- decomp(exc(iris, "Species"), algorithm = "PCA", verbosity = 0L)
transformed(iris_pca)

Run the code above in your browser using DataLab