switch_v: Vectorized version of the 'switch' command

switch_vR Documentation

Vectorized version of the switch command

Description

Vectorized version of the switch command

Usage

switch_v(EXPR, ...)

Arguments

EXPR

bla

...

bla

Value

absolute humidity contained in 1 m^3 in l

Examples

x <- rep(c('a', 'b', 'c'), each = 3)
switch_v(x, 
         a = 'first', 
         b = 'second',
         'other')

sebastian-gerdes/smisc documentation built on Jan. 21, 2023, 11:27 p.m.