make_match_expr: Create an if-statement for 'cases_expr' and 'cases_expr_'...

Description Usage Arguments Value

View source: R/cases.R

Description

Create an if-statement for cases_expr and cases_expr_ functions

Usage

1
make_match_expr(expr, match_expr, continue)

Arguments

expr

The expression we pattern match against.

match_expr

The pattern specification, on the form pattern -> expression

continue

The expression that goes in the else part of the if expression. If this is NULL, we create an if-expression instead of an if-else-expression.

Value

A new if-expression


pmatch documentation built on Oct. 19, 2018, 5:04 p.m.