a = as.data.table(iris)
a %>% select(1:3)
a
a = as.data.table(iris)
a %>% select_vars(is.factor,"Se")
a
a = as.data.table(iris)
a %>% select("Se") %>%
rename(sl = Sepal.Length,
sw = Sepal.Width)
a
DT = data.table(a=1:2,b=3:4,c=5:6)
DT
DT %>% rename(B=b)
Run the code above in your browser using DataLab