I am working on a bootstrapping set-up with many different estimates in rsample based on the solution provided by @Max to one of my prior questions. My basic problem is that I have so many different estimates that I cannot explicitly list them all. The term part was relatively easy, but I cannot figure out what to do with the estimate = part. The following is a simple illustration that works but requires explicitly listing the columns with the estimates.
Neither estimate = df nor estimate = c(df) works for providing the results columns in the compute function. Any suggestions for how to provide the estimates?
As it turns out, rsample really does not like named vectors for the estimates. So, "all" you need to do is to unlist the data frame with the estimates and you are good to go! Using as.vector(df) does not work.
I really do need to learn how to read and think before I code!
Since tidyverse automatically converts to a tibble there is no need for mucking about with pivot and everything else I was doing. Simply name the columns correctly and create an easy to read/manipulate term column and you are done.