Skip to contents

Perform linear or non-linear decomposition of numeric data.

Usage

decomp(x, algorithm = "ICA", config = NULL, outdir = NULL, verbosity = 1L)

Arguments

x

Matrix, data frame, or DecomposeConfig object: Input data, or a DecomposeConfig recipe (from setup_DecomposeConfig) carrying the data path, algorithm config, and output directory.

algorithm

Character: Decomposition algorithm.

config

DecompositionConfig: Algorithm-specific config. Its features selects the columns of x to decompose; NULL decomposes all of them.

outdir

Character, optional: Output directory. If not NULL, the returned Decomposition object is saved there as an .rds file, alongside a run record (decomp_<algorithm>.record.json) stating what the run resolved. See write_record.

verbosity

Integer: Verbosity level.

Value

Decomposition object.

Details

See docs.rtemis.org/r for detailed documentation.

Author

EDG

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]