cit.dfAggregate: cit.dfAggregate

Description Usage Arguments Value Note Author(s)

View source: R/cit.centroidsFunc.R

Description

aggregate each column of d by byvar using function FUN

Usage

1
cit.dfAggregate( data, partition, MARGIN=1, fAggreg=function(x){mean(x, na.rm=TRUE)})

Arguments

data

a dataframe of numeric data

partition

a vector on which to aggregate

MARGIN

1 : to aggregate rows ; 2 : to aggregate columns

fAggreg

the function to aggregate data by partition

Value

the reduced data.frame data

Note

This is a contribution from the Tumor Identity Cards (CIT) program founded by the 'Ligue Nationale Contre le Cancer' (France): http://cit.ligue-cancer.net. For any question please contact CITR@ligue-cancer.net

Author(s)

Aurelien de Reynies


citbcmst documentation built on May 2, 2019, 6:03 a.m.