
Compute one aggregate value
dot-compute_aggregate.RdPure function that turns a numeric (or character) vector into a single aggregated value. NA values are removed before computation.
Arguments
- values
Numeric vector (or character for `mode`/`concat`/`count`).
- method
One of `"mean"`, `"median"`, `"min"`, `"max"`, `"sum"`, `"sd"`, `"percentile"`, `"mode"`, `"concat"`, `"count"`.
- method_param
Numeric parameter required by `"percentile"` (e.g. 95 for the 95th percentile). Ignored for other methods.