Sets the cause attribute of an object and returns that object.

setCause(x, false = "false", missing = "missing")

Arguments

x

Object.

false

character. A character vector to set the cause to, when x is FALSE.

missing

character. A character vector to set the cause to, when x is NA.

Value

goalie/logical.

Note

Updated 2019-08-08.

See also

Examples

setCause(x = FALSE, false = "test")
#> [1] FALSE #> Cause: test