Skip to contents

Cause attribute

Usage

cause(object, ...)

# S4 method for goalie
cause(object)

Arguments

object

Object.

...

Additional arguments.

Value

character.

Note

Updated 2021-02-23.

Examples

x <- goalie(
    object = c(FALSE, TRUE),
    cause = c(
        "Element 1 is FALSE.",
        NA_character_
    )
)
print(x)
#> [1] FALSE  TRUE
x <- cause(x)
print(x)
#> [1] "Element 1 is FALSE." NA