-1

in my code

# save the stat indices to a dataframe
set_a_models_two_layers = results_two_hidden_layers %>%
  select(-estimator) %>%
  pivot_wider(names_from = metric, values_from = estimate) %>%
  arrange(rmse)
kable(set_a_models_two_layers[1:10,])

it occurs error like this

Error in select(): ! Can't subset columns that don't exist. ✖ Column estimator doesn't exist. Run rlang::last_error() to see where the error occurred.

user438383
  • 4,338
  • 6
  • 23
  • 35
  • See if `"estimator" %in% names(results_two_hidden_layers)` returns `FALSE`. If it does, the column doesn't exist in the data set. Also, you got a downvote because as is the question is not answerable, we don't know what your data set looks like. In order to ask a better question, please read [How to make a great R reproducible example](https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example) – Rui Barradas May 10 '22 at 06:45

0 Answers0