ensure: Enforce Specific Structure for R Objects

ensureR Documentation

Enforce Specific Structure for R Objects

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

object

An R object.

allow.na

Are NA values permitted for this object?

allow.null

Are NULL values permitted for this object?

default

If object is NULL, what value should be used in its place? If default is specified, allow.null is ignored (and assumed to be TRUE).


sparklyr documentation built on May 29, 2024, 2:58 a.m.