R/countnotna.R

Defines functions countnotna

Documented in countnotna

countnotna <-
function(x)
# countnotna()  - find no of non-na elements in a vector
{
  l <- length(x[!is.na(x)])
  return(l)
}

Try the dmm package in your browser

Any scripts or data that you put into this service are public.

dmm documentation built on June 22, 2024, 10:38 a.m.