Learn R Programming

reb (version 1.50.0)

naMean: Wrapper function for the arithmetic mean

Description

Simple call to mean with the na.rm option set to TRUE.

Usage

naMean(x)

Arguments

x
An R object

Value

The arithmetic mean of the values in x.

Examples

Run this code
  mean(c(1,2,3,NA),na.rm=TRUE)
  naMean(c(1,2,3,NA))

Run the code above in your browser using DataLab