Return index of the elements that would coerce to NA in a vector
Usage
which_coerce_NA(x, allow.orig.NA = TRUE, orig.NA = -989898)
Arguments
- x
- allow.orig.NA
Should NA be allowed. E.g. only NA introduced by as.numeric should be returned
- orig.NA
if allow.orig.NA id TRUE this number is internally used for NA in the input
Value
Return index of the elements that would coerce to NA in a vector