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

template<class T> inline bvec IsNA(std::vector<T> const& x, T const& NA); inline bvec IsNA(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 false everywhere, except for the positions where there are NAs.

See also