What and why

  • This is all about conditions on data values: they return TRUE or FALSE. This vector of TRUE/FALSE values is a logical vector.
  • These conditions – hence the resulting logical vectors – play an important role in filtering, mutating and summarizing dataframe columns.