Arithmetic mean for numeric labelled vectors
# S3 method for haven_labelled mean(x, trim = 0, na.rm = FALSE, ...)
| x | a numeric labelled vector. |
|---|---|
| trim | the fraction (0 to 0.5) of observations to be trimmed from each end of x . before the mean is computed. Values of trim outside that range are taken as the nearest endpoint. |
| na.rm | a logical value indicating whether |
| ... | additional arguments to be passed to or from methods. |