how to ge tthe mean f two numbers in R code example Example: find average in r mean(x, trim = 0, na.rm = FALSE, ...)