Dplyr select_ and starts_with on multiple values in a variable list Dplyr select_ and starts_with on multiple values in a variable list r r

Dplyr select_ and starts_with on multiple values in a variable list


We can use the regex

df %>%    select(matches(paste(Findsensor, collapse="|")))