SyntaxFix
Write A Post
Hire A Developer
Questions
Using dplyr you can:
df <- df %>% dplyr:: select(grep("ABC", names(df)), grep("XYZ", names(df)))