reduce
reports the count of non-zero elements, sum and sum-of-squares for specified covariates in a Cyclops data object.
reduce(object, covariates, groupBy, power = 1)
Specified reduction as number or data.frame
if segmented.
A Cyclops data object
Integer or string vector: list of covariates to report
Integer or string (optional): generates a segmented reduction stratified by this covariate. Setting groupBy = "stratum"
segments reduction for strataID
Integer: 0 = non-zero count, 1 = sum, 2 = sum-of-squares