Conditional Data Selection
Places values into an object according to the logical values in test.
logical object. Missing values (NA) are allowed
action to be taken if test is TRUE
action to be taken if test is FALSE
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 email@example.com
1 2 3
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.