medianWithoutNA {maDB} | R Documentation |
medianWithoutNA
This function calculates the median from the data submitted by excluding all NA and NULL values.
medianWithoutNA(Data)
Data |
A vector containing the values from which the median should be calculated. NA and NULL values are removed before the calculation. |
Simple function to calculate the median from a values vector.
Johannes Rainer
data <- c(2,3,5,1,NA,NULL,3,NA) data medianWithoutNA(data)