Count non-missing values in v.

nobs(v)

Arguments

v

A vector.

Value

integer, length of x minus the number of NAs in x.

Details

Returns the number of non-missing values in vector v. A convenience wrapper around sum(!is.na(v)).

Author

David Braze davebraze@gmail.com