| match_cond {matchr} | R Documentation |
Check and Evaluate Match Condition
Description
Called by Match the check whether a condition matches. Used to create custom methods for matching.
Usage
match_cond(cond, x, do, ...)
Arguments
cond |
match condition |
x |
object being matched |
do |
return expression associated with the condition. If |
... |
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
[Package matchr version 0.1.0 Index]