Description Usage Arguments Value Examples
Switch that takes expression and results as vectors (helper.R)
1 |
expression |
Expression vector |
... |
Cases and vectors of results. Results must be same class |
Result[i] of case that matches expression[i]
1 | matrixSwitch(c("a","b","c"), a = 1:3, b = 11:13, c = 101:103, NA)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.