ensureVector(x, n, cl = NULL, names = NULL)
integer
]
Desired length.character(1)
*]
Only do the operation if x
inherits from this class, otherwise simply let x pass.
Default is NULL
which means to always do the operation.character
*]
Names for result.
Default is NULL
, which means no names.n
with replicated x
or x
unchanged..