Compute the mean of a data set
represented by the pair of the numeric vectors data
and optionally its
frequency vector freq
.
Arguments
- data
A numeric vector of a data set.
- freq
A frequency vector corresponding to the
data
vector. The default value isNULL
, which means all frequencies are one.