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 July 26, 2023, 5:23 p.m.