powered by
Replace the director, metric, or reducer for a partitioner
replace_partitioner(partitioner, direct = NULL, measure = NULL, reduce = NULL)
a partitioner
partitioner
a function that directs, possibly created by as_director()
as_director()
a function that measures, possibly created by as_measure()
as_measure()
a function that reduces, possibly created by as_reducer()
as_reducer()
Other partitioners: as_partitioner(), part_icc(), part_kmeans(), part_minr2(), part_pc1(), part_stdmi()
as_partitioner()
part_icc()
part_kmeans()
part_minr2()
part_pc1()
part_stdmi()
replace_partitioner( part_icc, reduce = as_reducer(rowMeans) )
Run the code above in your browser using DataLab