mean_noNA: Computes mean excluding NA values

View source: R/mean_noNA.r

mean_noNAR Documentation

Computes mean excluding NA values

Description

Version of mean() where default na.rm=TRUE

Usage

mean_noNA(x)

Arguments

x

numeric vector

Author(s)

Nikolai Klibansky

Examples

x <- c(1,2,10,NA)
mean(x)
mean(x,na.rm=TRUE)
mean_noNA(x)

nikolaifish/bamExtras documentation built on July 21, 2023, 8:26 a.m.