14 Control Structures

14.1 Logic

  • TRUE and FALSE
  • ==, !=, and identical()
  • & and &&
  • | and ||

14.2 if and else

14.3 Extensions

14.4 ifelse(), dplyr::if_else()

14.4.1 data.table::fifelse()

14.5 Pattern Matching

14.5.1 dplyr::case_when()

14.5.2 data.table::fcase()