hidd.mean {ctbi} | R Documentation |
Calculate the mean of a vector if the number of its non-NA values is above a threshold. Otherwise, return NA.
hidd.mean(x, N.min.NA)
x |
a numeric vector |
N.min.NA |
a numeric threshold |
y a numeric (either NA or the mean of x)