Builds a >| <Reduction> query fragment from a reduction query.
Converts each row of a matrix to a single value via the given
reduction (Sum(), Mean(), Quantile(p = 0.5), ...).
Usage
ReduceToColumn(reduction, ...)
Arguments
- reduction
A reduction DafrQuery (e.g. Sum(),
Quantile(p = 0.5)), or a piped DafrQuery with the reduction
supplied in ....
- ...
The reduction DafrQuery when reduction holds the
piped prior.
Examples
ReduceToColumn(Sum())
#> <DafrQuery> >| Sum
ReduceToColumn(Quantile(p = 0.5))
#> <DafrQuery> >| Quantile p: "0.5"