Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Give result of initial_time_split() its own subclass #395

Closed
hfrick opened this issue Dec 6, 2022 · 1 comment · Fixed by #397
Closed

Give result of initial_time_split() its own subclass #395

hfrick opened this issue Dec 6, 2022 · 1 comment · Fixed by #397

Comments

@hfrick
Copy link
Member

hfrick commented Dec 6, 2022

library(rsample)

initial_split(mtcars) |> class()
#> [1] "initial_split" "mc_split"      "rsplit"

# extra subclass to "initial_split"
group_initial_split(mtcars, cyl) |> class()
#> [1] "group_initial_split" "initial_split"       "grouped_mc_split"   
#> [4] "mc_split"            "rsplit"

# should also get its own subclass
initial_time_split(mtcars) |> class()
#> [1] "initial_split" "rsplit"

Created on 2022-12-06 with reprex v2.0.2

@github-actions
Copy link

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.

@github-actions github-actions bot locked and limited conversation to collaborators Dec 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant