Description Usage Arguments Details Value Author(s) See Also Examples
Places values into an object according to the logical values in test.
1 |
test |
logical object. Missing values (NA) are allowed |
x |
action to be taken if test is TRUE |
y |
action to be taken if test is FALSE |
... |
other |
NA values in test cause NAs in the result. Compared with ifelse() in Splus, the length of test in ifelse1() is 1, which means ifelse1() will do only one test.
x or y depending on test.
Knut M. Wittkowski kmw@rockefeller.edu
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.