powered by
Sane max for aggregation
aggMax(x)
[vector(n)] numerical or character argument
vector(n)
Maximum value in ‘x’ or ‘NA’ if ‘x’ is empty.
R's max returns ‘-Inf’ for empty lists. This is undesirable for aggregation where we would rather have ‘NA’.
max