hidd.median {ctbi}R Documentation

hidd.median

Description

Calculate the median of a vector if the number of its non-NA values is above a threshold. Otherwise, return NA.

Usage

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

Arguments

x

a numeric vector

N.min.NA

a numeric threshold

Value

a numeric (either NA or the median of x)


[Package ctbi version 2.0.5 Index]