Description Usage Arguments See Also Examples
This function is a vectorized version of switch
, that is, for
each element of input vector, switch
is evaluated and the results are
combined.
1 |
EXPR |
an expression evaluated to be character or numeric vector/list. |
... |
The list of alternatives for each |
SIMPLIFY |
|
1 2 3 4 5 |
[1] 0 0 -1 -2 -2
[1] "type-A" "type-A" "type-B" "type-A" "type-B" "type-B" "type-A" "type-A"
[9] "type-B"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.