medianWithoutNA {maDB}R Documentation

Calculating the median by excluding all NA and NULL values

Description

medianWithoutNA This function calculates the median from the data submitted by excluding all NA and NULL values.

Usage

medianWithoutNA(Data)

Arguments

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

Details

Simple function to calculate the median from a values vector.

Author(s)

Johannes Rainer

References

Examples

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


[Package maDB version 1.10.0 Index]