hidd.mad: hidd.mad

View source: R/hidd.mad.R

hidd.madR Documentation

hidd.mad

Description

Calculate the mean absolute deviation (MAD) of a vector if the number of its non-NA values is above a threshold. Otherwise, return NA.

Usage

hidd.mad(x, N.min.NA)

Arguments

x

a numeric vector

N.min.NA

a numeric threshold

Value

a numeric (either NA or the MAD of x)


fritte2/ctbi documentation built on Feb. 7, 2023, 5:43 a.m.