Skip to contents

Arithmetic Mean with NA stripped before computation

Usage

mean_na_rm(x)

Arguments

x

An R object.

Value

See mean

Examples

mean_na_rm(c(1, 2, 3, NA, 4))
#> [1] 2.5