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

int_*() functions require rsample objects, not just data frames #545

Open
hfrick opened this issue Sep 19, 2024 · 2 comments
Open

int_*() functions require rsample objects, not just data frames #545

hfrick opened this issue Sep 19, 2024 · 2 comments

Comments

@hfrick
Copy link
Member

hfrick commented Sep 19, 2024

The int_*() used to work with data frames, this changed with #435 where we turned them into methods for bootstraps objects. Let's update the documentation to reflect that and update/remove these tests.

Code
int_pctl(as.data.frame(bt_norm), stats)
Condition
Error in `UseMethod()`:
! no applicable method for 'int_pctl' applied to an object of class "data.frame"
---
Code
int_t(as.data.frame(bt_norm), stats)
Condition
Error in `UseMethod()`:
! no applicable method for 'int_t' applied to an object of class "data.frame"
---
Code
int_bca(as.data.frame(bt_norm), stats, .fn = get_stats)
Condition
Error in `UseMethod()`:
! no applicable method for 'int_bca' applied to an object of class "data.frame"

@hfrick
Copy link
Member Author

hfrick commented Sep 19, 2024

These also need updating or removal:

Code
int_t(bt_norm %>% dplyr::filter(id != "Apparent"), stats)
Condition
Error in `UseMethod()`:
! no applicable method for 'int_t' applied to an object of class "c('tbl_df', 'tbl', 'data.frame')"
---
Code
int_bca(bt_norm %>% dplyr::filter(id != "Apparent"), stats, .fn = get_stats)
Condition
Error in `UseMethod()`:
! no applicable method for 'int_bca' applied to an object of class "c('tbl_df', 'tbl', 'data.frame')"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@hfrick and others