meanWithoutNA {maDB}R Documentation

Calculating the mean by excluding all NA and NULL values

Description

meanWithoutNA This function calculates the mean from the data submitted by excluding all NA and NULL values.

Usage

meanWithoutNA(Data)

Arguments

Data A vector containing the values from which the mean should be calculated. NA and NULL values are removed before the calculation.

Details

Simple function to calculate the mean from a values vector.

Author(s)

Johannes Rainer

Examples

data <- c(2,3,5,1,NA,NULL,3,NA)
data
meanWithoutNA(data)


[Package maDB version 1.12.0 Index]