vectorSwitch: Common switch that takes expression as vector (helper.R)

Description Usage Arguments Value Examples

View source: R/hlpr.R

Description

Common switch that takes expression as vector (helper.R)

Usage

1

Arguments

expression

Expression vector

...

Cases and results. Results must be same class

Value

Result of case that matches expression[i]

Examples

1
vectorSwitch(c("a","c"), a = 1, b = 2, c = 3, 4)

solavrov/hlpr documentation built on Nov. 23, 2017, 10:58 p.m.