This is a template function with a specification for the type uint.

template<class T> inline bvec NotIsNA(std::vector<T> const& x, T const& NA); inline bvec NotIsNA(uvec const& x);

The element type T must define an == operator.

Arguments

x

a std::vector<T> const& of elements to be checked.

NA

T const& value specifying NA (can be any value).

Value

a bvec of the same length as x with true everywhere, except for the positions where there are NAs.

See also