check.conversion: Check that the conversion to a data type does not change the number
of NA values
Description
Check that the conversion to a data type does not change the number
of NA values
Usage
check.conversion(x, FUN, ...)
Value
FUN(x, ...)
or an error if the set of NAs change.
Arguments
- x
the value to convert
- FUN
the function to use for conversion
- ...
arguments passed to FUN