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 Oct. 24, 2024, 1:31 a.m.