I'm looking for a way to perform an operation on a selection of columns and then continue to work with all columns again. I would also like to keep the order of the columns. The original selected columns are not needed anymore.
My data has row.names, if that helps
library(dplyr)
data(iris)
iris2 <- cbind(first = iris, second = iris)
iris2 %>%
select(-contains("Species")) %>%
scale() #%>%
#deselect() ??
Any ideas on this one? I couldn't find a function like unselect or deselect but I guess I'm missing something obvious?