Rdocumentation
powered by
Learn R Programming
assertive (version 0.2-6)
set_cause: Set a cause and return the input
Description
Sets the cause attribute of an object and returns that object.
Usage
set_cause(x, value)
Arguments
x
A variable.
value
A character vector to set the cause to, where
x
is not
TRUE
.
Value
x
, with a new cause attribute.
Details
If
x
is
TRUE
everywhere, this returns the input without setting a cause. Otherwise, the cause is an empty string where
x
is
TRUE
, and
value
elsewhere.
See Also
cause
,
setNames