Conditional transformations (2)

x <- c(-3:3, NA)
if_else(x > 0, "+ve", "-ve", "???")
## [1] "-ve" "-ve" "-ve" "-ve" "+ve" "+ve" "+ve" "???"