Metrics are functions that tell how much information would be
lost for a given reduction in the data. reduce. as_measure() is a
helper function to create new metrics to be used in partitioners.
partitioners can be created with as_partitioner().
Usage
as_measure(.f, ...)
Arguments
.f
a function that returns either a numeric vector or a data.frame