match_cond: Check and Evaluate Match Condition

Description Usage Arguments Details Value

View source: R/match.R

Description

Called by Match the check whether a condition matches. Used to create custom methods for matching.

Usage

1
match_cond(cond, x, do, ...)

Arguments

cond

match condition

x

object being matched

do

return expression associated with the condition. If cond is matched with x, then do should be evaluated and returned in a list with TRUE: list(TRUE, eval(do)).

...

arguments passed to evaluation

Details

See the Match details for explanations about provided methods.

Value

FALSE if no match, or a list containing TRUE and the evaluated expression


matchr documentation built on Sept. 9, 2021, 5:07 p.m.

Related to match_cond in matchr...