Search notes:

R function: ifelse

abc <- c(4, 2, 9, 3, 6)
ifelse(abc>5, "GT", "LE")
# [1] "LE" "LE" "GT" "LE" "GT"
Github repository about-r, path: /functions/ifelse.R

See also

ifelse used as an alternative to the switch statement to prevent the Error in switch … EXPR must be a length 1 vector.
Index to (some) R functions

Index