R/summarize_data.R
is_invalid_number.Rd
Can be helpful as a workaround for gotchas such as: is.numeric(NaN) is.numeric(Inf) is.numeric(NA) is.numeric(NULL)
is_invalid_number(x)
a vector
boolean
is_invalid_number(c(NA, Inf, mean(Inf, -Inf))) #> [1] TRUE TRUE TRUE