correctly converts factors to vectors, and then converts to
numeric or integer, which may silently introduce NAs. Invisible rounding
errors can be a problem going from numeric to integer, so consider adding
tolerance to this conversion. asIntegerNoWarn
silently
floor
s.
"are" functions return a value for each input, where is "allIs" functions return a single logical.
asNumericNoWarn(x)asIntegerNoWarn(x)
areIntegers(x, tol = 1e-09, na.ignore = FALSE)
is a vector, probably of numbers of characters
tolerance when considering if two numbers are integers, default 1e-9
logical, if TRUE will pass through NA values, otherwise, they are marked FALSE.
numeric vector, may have NA values
logical vector