ifelse2 | R Documentation |
ternary operator just like java test ? yes : no
ifelse2(test, yes, no)
test |
an object which can be coerced to logical mode. |
yes |
return values for true elements of test. |
no |
return values for false elements of test. |
x <- ifelse2(TRUE, 1:4, 1:10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.