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

handle attributes on outcome columns #1062

Merged
merged 4 commits into from
Feb 12, 2024
Merged

handle attributes on outcome columns #1062

merged 4 commits into from
Feb 12, 2024

Conversation

simonpcouch
Copy link
Contributor

We use is.atomic() in check_outcome() rather than is.vector() as it more often aligns with what we mean when we're checking for outcome types. I've transitioned those type checks in a few more places. Closes #1060, closes #1061.

Copy link
Member

@hfrick hfrick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On board! Will be good to not trip over labels. I've suggested some small changes because the switch from is.vector() to is.atomic() also allows us to remove some of the special-casing for factors (and Surv objects).

R/convert_data.R Outdated Show resolved Hide resolved
R/convert_data.R Outdated Show resolved Hide resolved
R/fit.R Outdated Show resolved Hide resolved
R/fit.R Outdated Show resolved Hide resolved
@simonpcouch simonpcouch merged commit e0ea0be into main Feb 12, 2024
7 checks passed
@simonpcouch simonpcouch deleted the outcome-labels branch February 12, 2024 16:36
Copy link

This pull request 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 Feb 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants