Check If an Object Is a Valid Effectclass Object

is_effectclass(x, message = c("none", "warning", "error"))

Arguments

x

The object to test.

message

What to do when the object is not a valid effectclass object. "none": return FALSE with a message. "warning": return FALSE with a warning(). "error": return an error.

Value

A single TRUE or FALSE value.

See also

Other utils: unlist