How to Use Mean() In R with Examples
mean() can be used to calculate mean in R. The following is the basic statement. mean(x, trim = 0, na.rm = FALSE) x: It is an R object. trim: It is in the range of (0 to 0.5). The number indicates the percentage of observations to be trimmed from each end of sorted x, before the mean is computed. … Read more