Learn R Programming

PatientLevelPrediction (version 3.0.0)

bySumFf: Compute sum of values binned by a second variable

Description

Compute sum of values binned by a second variable

Usage

bySumFf(values, bins)

Arguments

values

An ff object containing the numeric values to be summed

bins

An ff object containing the numeric values to bin by

Examples

Run this code
# NOT RUN {
values <- ff::as.ff(c(1, 1, 2, 2, 1))
bins <- ff::as.ff(c(1, 1, 1, 2, 2))
bySumFf(values, bins)

# }

Run the code above in your browser using DataLab