as_reducer | R Documentation |
Reducers are functions that tell the partition algorithm how
to reduce the data. as_reducer()
is a helper function to create new
reducers to be used in partitioner
s. partitioner
s can be created with
as_partitioner()
.
as_reducer(.f, ..., returns_vector = TRUE, first_match = NULL)
.f |
a function that returns either a numeric vector or a |
... |
Extra arguments passed to |
returns_vector |
logical. Does |
first_match |
logical. Should the partition algorithm stop when it finds
a reduction that is equal to the threshold? Default is |
a function to use in as_partitioner()
Other reducers:
reduce_first_component()
,
reduce_kmeans()
,
reduce_scaled_mean()
Other reducers:
reduce_first_component()
,
reduce_kmeans()
,
reduce_scaled_mean()
reduce_row_means <- as_reducer(rowMeans)
reduce_row_means
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.