These routines are useful when preparing to pass objects to a Spark routine, as it is often necessary to ensure certain parameters are scalar integers, or scalar doubles, and so on.
An R object.
NA values permitted for this object?
NULL values permitted for this object?
NULL, what value should
be used in its place? If
default is specified,
is ignored (and assumed to be