Tidymodels : problem performing PCR Error: Can't subset columns that don't exist
问题 I'm trying to do a PCR with tidymodels however i'm keep runing into this problem. I know there is a similar post but the solution over there, doesn't work form my case. My data library(AppliedPredictiveModeling) data(solubility) train = solTrainY %>% bind_cols(solTrainXtrans) %>% rename(solubility = ...1) My PCR analysis train %<>% mutate_all(., as.numeric) %>% glimpse() tidy_rec = recipe(solubility ~ ., data = train) %>% step_corr(all_predictors(), threshold = 0.9) %>% step_pca(all