Wednesday, April 8, 2020

mean

A measure of center. Arithmetic mean, or average. The sum of all values in a list divided by the total number of values present.


In R, mean has a couple of options. You can elect to exclude NA values, which can occur in lists you get from any source. You can also 'trim' a portion of the values off to resolve outliers (outliers become the nearest limit value).

R Example

> lst <- c(1,3,5)
> mean(lst)
[1] 3

No comments:

Post a Comment

Please help to combat malicious use of the Internet.