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