Selecting columns

  • everything() for all non-grouping columns
  • where() to select based on a condition
    • where(is.numeric) = all numeric columns
    • where(is.character) = all character columns
    • starts_with("a") & !where(is_numeric) = all columns that start with “a” and are not numeric
    • where(\(x) any(stringr::str_detect("name"))) = all columns that contain the word “name” in at least one value