I recently discovered spatial_clustering_cv() from spatialresample package to work alongside tidymodels.
I was just wondering if setting spatial_clustering_cv(v, coords = c(x, y) would keep x and y as predictors or would be removed (like id or strata would).
How can I check this?
This has been crossposted from spatialsample::spatial_clustering_cv() for Tidymodels -- coords removed for prediction or no? · Issue #32 · tidymodels/spatialsample · GitHub.
Answer in case you see this post first:
Resampling only splits the data. The columns you declare as coords will still be part of the data and their role will be what you declare in the recipe.