mea_na: Arithmetic mean with NA values.

Description Usage Arguments Value Examples

View source: R/functs_na.R

Description

Function for arithmetic mean automatically handling NAs. Calculates arithmetic mean value disregarding NAs, except when all values are NA.

Usage

1
mea_na(x)

Arguments

x

see arguments in R documentation for mean.

Value

The arithmetic mean of values in x.

Examples

1
2
mea_na(c(2 ,3, NA))
mea_na(c(NA, NA, NA))

ERottler/meltimr documentation built on April 29, 2021, 9:56 a.m.