Friday, November 20, 2015

R : move selected column to the left

install.packages("dplyr")

library(dplyr)

# move Survived column to the left and keep everything else the same
train <- train2 %>% select(Survived, everything())

No comments:

Post a Comment