r average function code example
Example 1: find average in r
mean(x, trim = 0, na.rm = FALSE, ...)
Example 2: R average function name
myData <- c(10, 4, 50, 30, 26)
# Average
mean(myData)
mean(x, trim = 0, na.rm = FALSE, ...)
myData <- c(10, 4, 50, 30, 26)
# Average
mean(myData)