Learn R Programming

citccmst (version 1.0.2)

cit.dfAggregate: cit.dfAggregate

Description

aggregate each column of d by byvar using function FUN

Usage

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

data