set.seed(1234) ind <- sample(2, nrow(bank), replace = TRUE, prob = c(0.7, 0.3)) train.data <- bank[ind == 1, ] test.data <- bank[ind == 2, ]
I