Description Usage Arguments Value Examples
View source: R/detect_na_intro.R
Detect where coercing a vector introduces NA
s.
1 | detect_na_intro(x, FUN)
|
x |
a vector. |
FUN |
a function for type coercion. |
A logical vector indicating where NA
s were introduced.
1 2 3 | x <- c("5", "12", "zero", NA, "0")
check <- detect_na_intro(x, as.numeric)
data.frame(x, check)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.