hidd.mean: hidd.mean

View source: R/hidd.mean.R

hidd.meanR Documentation

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)

Arguments

x

a numeric vector

N.min.NA

a numeric threshold

Value

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


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