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/alptempr documentation built on May 7, 2021, 1:12 a.m.