as_partition_step: Create a partition object from a data frame
Description
as_partition_step() creates a partition_step object. partition_steps
are used while iterating through the partition algorithm: it stores necessary
information about how to proceed in the partitioning, such as the information
threshold. as_partition_step() is primarily called internally by
partition() but can be helpful while developing partitioners.