condMean
works like a very fast version of tapply with FUN=mean
.
condMean(x, index, na.rm = FALSE, ...)
numeric
vector to be averaged
(list of) factor(s)
for which the mean will be calculated
logical
If TRUE
NA
values will be removed
not used
array
with dimensions of index