Perform linear or non-linear decomposition of numeric data.
Arguments
- x
Matrix, data frame, or
DecomposeConfigobject: Input data, or aDecomposeConfigrecipe (from setup_DecomposeConfig) carrying the data path, algorithm config, and output directory.- algorithm
Character: Decomposition algorithm.
- config
DecompositionConfig: Algorithm-specific config. Its
featuresselects the columns ofxto decompose;NULLdecomposes all of them.- outdir
Character, optional: Output directory. If not NULL, the returned
Decompositionobject is saved there as an.rdsfile, alongside a run record (decomp_<algorithm>.record.json) stating what the run resolved. See write_record.- verbosity
Integer: Verbosity level.
Details
See docs.rtemis.org/r for detailed documentation.
Examples
iris_pca <- decomp(exc(iris, "Species"), algorithm = "PCA")
#> 2026-08-09 13:22:25
#> ▶
#> [decomp]
#> 2026-08-09 13:22:25
#> Input: 150 cases x 4 features.
#> [summarize_unsupervised]
#> 2026-08-09 13:22:25
#> Decomposing with PCA...
#> [decomp]
#> 2026-08-09 13:22:25
#> Done in 1e-03 seconds.
#> [decomp]