Selects elements from either yes
or no
depending on whether test
is
TRUE
or FALSE
.
Usage
ifelse(test, yes, no, ...)
# Default S3 method
ifelse(test, yes, no, ...)
# S3 method for class 'tbl_ddf'
ifelse(test, yes, no, ...)
# S3 method for class 'ddf_col'
ifelse(test, yes, no, ...)
Value
A dibble if test is a dibble. See base::ifelse()
for the return
value of the default method.
Details
ifelse()
overrides base::ifelse()
to make it generic. The default method
calls the base version.