Description Usage Arguments See Also Examples
View source: R/ifelse_wrapper.R
ifelse
functions can be nested to do a vectorised if then else
evaluation, with multiple if then statements. Although this is functional it
often gives messy code. These three functions provide a wrapper, so the
code gets cleaner.
1 2 3 4 5 |
if_stat |
Logical condition forming the if statement. |
then |
Value to be returned, when |
else_ret |
Value to be returned, when all |
https://edwinth.github.io/blog/ifelse-wrapper/
1 2 3 4 5 6 7 8 9 10 11 12 13 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.