my question is about splitting data!
I used to split data into training and testing set using caret library in R
library(caret) data(iris) inTrain <- createDataPartition(y = iris$Species, p = 0.7, list = F) training <- iris[inTrain, ] testing <- iris[-inTrain, ]
but recently I encounter repeated cross validation in caret
library(caret) control <- trainControl(method="repeatedcv", number = 10, repeats= 3)
so my question is... if I use the repeated cross validation, don't I need to split data into training and testing sets?
I split data into training and testing sets first and then use the repeated cross validation on training set?