# NOT RUN {
library(dplyr, warn.conflicts = FALSE)
dt <- lazy_dt(data.frame(x1 = 1, x2 = 2, y1 = 3, y2 = 4))
dt %>% select(starts_with("x"))
dt %>% select(ends_with("2"))
dt %>% select(z1 = x1, z2 = x2)
# }
Run the code above in your browser using DataLab