Skip to contents
  • all_uppercase() select all columns with upper case names

  • all_lowercase() select all columns with lower case names

  • all_labelled() select all columns with a label attribute

Usage

all_uppercase()

all_lowercase()

all_labelled()

Examples

df <- data.frame(ONE = 1, two = 2)

df |> select(all_uppercase())
#>   ONE
#> 1   1
df |> select(all_lowercase())
#>   two
#> 1   2
df |>
  labelled::set_variable_labels(ONE = "First Column") |>
  select(all_labelled())
#>   ONE
#> 1   1