View source: R/DataManagement.R
reduce | R Documentation |
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)
object |
A Cyclops data object |
covariates |
Integer or string vector: list of covariates to report |
groupBy |
Integer or string (optional): generates a segmented reduction stratified by this covariate. Setting |
power |
Integer: 0 = non-zero count, 1 = sum, 2 = sum-of-squares |
Specified reduction as number or data.frame
if segmented.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.