which_coerce_NA: which_coerce_NA

View source: R/internal_utils.R

which_coerce_NAR Documentation

which_coerce_NA

Description

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


kagervall/Smoltreg documentation built on April 14, 2025, 2:10 a.m.