# NOT RUN {
library(metan)
# Select variables that start with "C" and not end with "D".
data_ge2 %>%
select(difference_var("C", "D"))
# Select variables that start with "C" and end with "D".
data_ge2 %>%
select(intersect_var("C", "D"))
# Select variables that start with "C" or end with "D".
data_ge2 %>%
select(union_var("C", "D"))
# }
Run the code above in your browser using DataLab