Learn R Programming

MiChip (version 1.26.0)

naOmitMedian: Calculates the median of an array excluding NAs

Description

Calculates the median of an array excluding NAs

Usage

naOmitMedian(mat, madAdjust=FALSE)

Arguments

mat
A single dimensional matrix
madAdjust
if TRUE then summarized data will be filtered according to the MAD median absolute deviation and set to NA if the median is less than MAD

Examples

Run this code
	#Calculate the median of matrix mat omiting NAs
## Not run: 
# 	myMedian <-naOmitMedian(mat, madAdjust=TRUE)
# ## End(Not run)

Run the code above in your browser using DataLab