Learn R Programming

ctbi (version 2.0.5)

hidd.mean: hidd.mean

Description

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

Usage

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

Value

y a numeric (either NA or the mean of x)

Arguments

x

a numeric vector

N.min.NA

a numeric threshold