reduce_first_component: Reduce selected variables to first principal component

View source: R/reducers.R

reduce_first_componentR Documentation

Reduce selected variables to first principal component

Description

Reducers are functions that tell the partition algorithm how to reduce the data. as_reducer() is a helper function to create new reducers to be used in partitioners. partitioners can be created with as_partitioner().

reduce_first_component() returns the first component from the principal components analysis of the target variables.

Usage

reduce_first_component(.partition_step)

Arguments

.partition_step

a partition_step object

Value

a partition_step object

See Also

Other reducers: as_reducer(), reduce_kmeans(), reduce_scaled_mean()


USCbiostats/partition documentation built on Feb. 3, 2024, 3:38 a.m.