This is inspired by a post here for the use of tidyverse to retrieve column(s) whose contents match certain value.
df |> select(where(function(x) any(grepl(",", x))))
The code above retrives any column that has a comma in it.
This is inspired by a post here for the use of tidyverse to retrieve column(s) whose contents match certain value.
df |> select(where(function(x) any(grepl(",", x))))
The code above retrives any column that has a comma in it.