Compute max of values binned by a second variable

byMaxFf(values, bins)

Arguments

values

An ff object containing the numeric values to take the max of.

bins

An ff object containing the numeric values to bin by.

Examples

values <- ff::as.ff(c(1, 1, 2, 2, 1)) bins <- ff::as.ff(c(1, 1, 1, 2, 2)) byMaxFf(values, bins)
#> bins maxs #> 1 1 2 #> 2 2 2