condMean: Fast conditional mean

Description Usage Arguments Value

View source: R/tsum.R

Description

condMean works like a very fast version of tapply with FUN=mean.

Usage

1
condMean(x, index, na.rm = FALSE, ...)

Arguments

x

numeric vector to be averaged

index

(list of) factor(s) for which the mean will be calculated

na.rm

logical If TRUE NA values will be removed

...

not used

Value

array with dimensions of index


ffbase documentation built on Feb. 27, 2021, 5:06 p.m.