| as_partition_step | R Documentation | 
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.
as_partition_step(
  .x,
  threshold = NA,
  reduced_data = NA,
  target = NA,
  metric = NA,
  tolerance = 0.01,
  var_prefix = NA,
  partitioner = NA,
  ...
)
| .x | a  | 
| threshold | The minimum information loss allowable | 
| reduced_data | A data set with reduced variables | 
| target | A character or integer vector: the variables to reduce | 
| metric | A measure of information | 
| tolerance | A tolerance around the threshold to accept a reduction | 
| var_prefix | Variable name for reduced variables | 
| partitioner | A  | 
| ... | Other objects to store during the partition step | 
a partition_step object
.df <- data.frame(x = rnorm(100), y = rnorm(100))
as_partition_step(.df, threshold = .6)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.