Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

cause

Get or set the "cause" attribute


Description

Gets or sets the "cause" (of failure) attribute of a variable.

Usage

cause(x)

cause(x) <- value

Arguments

x

Any variable.

value

Passed to gettextf and stored in the "cause" attribute.

Value

The get method returns the "cause" attribute.

See Also

Examples

# Scalar case
yn <- is_identical_to_true(FALSE)
cause(yn)

# Vector case
yn <- is_true(c(TRUE, FALSE, NA))
cause(yn)

assertive.base

A Lightweight Core of the 'assertive' Package

v0.0-9
GPL (>= 3)
Authors
Richard Cotton [aut, cre], Sunkyu Choi [trl], Ivanka Skakun [trl], Gergely Dar<c3><b3>czi [trl], Anton Antonov [trl], Hisham Ben Hamidane [trl], Anja Billing [trl], Aditya Bhagwat [trl], Rasmus B<c3><a5><c3><a5>th [trl], Mine Cetinkaya-Rundel [trl], Aspasia Chatziefthymiou [trl]
Initial release
2021-02-07

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.