tidymodels / rsample

Classes and functions to create and summarize resampling objects
https://rsample.tidymodels.org
Other
338 stars 67 forks source link

rsample::group_vfold_cv -> splits . Factors converted to characters #167

Closed gtalckmin closed 4 years ago

gtalckmin commented 4 years ago

Hello, I noticed that the newest version of rsample is transforming variables from factors to characters (within the splits at least), when applying group_vfold_cv.

In turn, if one is keen to use a formula (at least for the pls package): plsr(y~ -factor,...) the predict function outputs this error: Error incontrasts<-(tmp, value = contr.funs[1 + isOF[nn]]) : contrasts can be applied only to factors with 2 or more levels

topepo commented 4 years ago

Can you provide a small, reproducible example?

github-actions[bot] commented 3 years ago

This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex https://reprex.tidyverse.org) and link to this issue.