Enforce Specific Structure for R Objects
ensure
Description
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.
Arguments
| Arguments | Description | 
|---|---|
| object | An R object. | 
| allow.na | Are NAvalues permitted for this object? | 
| allow.null | Are NULLvalues permitted for this object? | 
| default | If objectisNULL, what value should be used in its place? Ifdefaultis specified,allow.nullis ignored (and assumed to beTRUE). |