partition (version 0.1.0)

assign_partition: Process a dataset with a partitioner

Description

assign_partition() is the primary handler for the partition algorithm and is iterated by reduce_partition_c(). assign_partition() does initial set up of the partition_step object and then applies the partitioner to each iteration of the partition_step via direct_measure_reduce().

Usage

assign_partition(.x, partitioner, .data, threshold, tolerance, var_prefix)

Arguments

.x

the data or a partition_step object

partitioner

a partitioner. See the part_*() functions and as_partitioner().

.data

a data.frame to partition

threshold

the minimum proportion of information explained by a reduced variable; threshold sets a boundary for information loss because each reduced variable must explain at least as much as threshold as measured by the metric.

tolerance

a small tolerance within the threshold; if a reduction is within the threshold plus/minus the tolerance, it will reduce.

Value

a partition_step object