Select multiple columns with dplyr::select() with numbers as names
问题 Let's say I have the following data frame: a <- runif(10) dd <- as.data.frame(t(a)) names(dd) <- c("ID", "a", "a2", "b", "b2", "f", "XXX", "1", "4", "8") In dplyr , there is a nice way to select a number of columns. For example, to select the columns between column a and column f , I can use dd %>% dplyr::select(a:f) In my problem, the columns of the last part of the data frame may vary, yet they always have as name a number between 1 and 99. However, I can not seem to be able to do the same