Define a goalie check classed return

goalie(object, cause)

Arguments

object

logical.

cause

character. Corresponding cause attribute for logical object. Note that TRUE values must contain NA_character_ cause. This value should not be named.

Value

goalie, which extends logical.

Note

Updated 2021-02-23.

Examples

x <- goalie( object = c("aaa" = FALSE, "bbb" = TRUE), cause = c( "'aaa' is FALSE.", NA_character_ ) ) print(x)
#> aaa bbb #> FALSE TRUE
#> aaa bbb #> "'aaa' is FALSE." NA