# NOT RUN {
select(mtcars, mpg:cyl)
select(mtcars, MilesPerGallon = mpg, Cylinders = cyl)
mtcars %>% select(mpg)
mtcars %>% select(!mpg, !cyl)
iris %>% select(contains("Petal"))
df <- as.data.frame(matrix(runif(100), nrow = 10))
df <- as.data.frame(df[c(3, 4, 7, 1, 9, 8, 5, 2, 6, 10)])
df %>% select(num_range("V", 4:6))
mtcars %>% relocate(ends_with("p"), .before = mpg)
# }
Run the code above in your browser using DataLab