What is a mean with trim mean?

What is a mean with trim mean? For example, trim = 0.1....

mean(x, ...)

Default S3 method:

mean(x, trim = 0, na.rm = FALSE, ...)

Arguments

x
An R object. Currently there are methods for numeric/logical vectors and date, date-time and time interval objects. Complex vectors are allowed for trim = 0, only.

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.

This article gives a very good explanation

1 Like

oh yes I understand it now! what if your total n time the x% you are trying to trim is not an integer? For example, it is 1.2 or 1.9? Will it round I? for example, 1.2 will get round to 1, so trimming 1 from each end and 1.9 will get rounded to 2, so trimming 2 from each end?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.