powered by
NULL
Returns the input, unless it is NULL, in which case it returns an empty vector / list, etc of defined type
ifNotNull(x, defType)
Input of any type, may be NULL
If x is NULL, return empty vector of this type. Options: list, numeric, character, integer
x
This can be useful when creating S4, RC, or R6 objects