# NOT RUN {
library(rsample)
cv_obj <- vfold_cv(mtcars, v = 10)
cv_obj$lm_rmse <- rnorm(10, mean = 2)
cv_obj$nnet_rmse <- rnorm(10, mean = 1)
## now deprecated for rset objects:
gather(cv_obj)
## instead of gather, use tidyr::pivot_longer:
library(tidyr)
library(dplyr)
cv_obj %>%
select(-splits) %>%
pivot_longer(-id)
# }
Run the code above in your browser using DataLab