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

vec_detect_complete() fails for Surv() objects #1953

Open
EmilHvitfeldt opened this issue Sep 17, 2024 · 1 comment
Open

vec_detect_complete() fails for Surv() objects #1953

EmilHvitfeldt opened this issue Sep 17, 2024 · 1 comment

Comments

@EmilHvitfeldt
Copy link
Member

As the title says, the vec_detect_complete() function fails via a stack overflow issue for Surv() object data. Most likely happening because Surv() objects are matrices

library(vctrs)
library(survival)

complete.cases(
  Surv(c(1, 5, 2), c(1, 0, 1))
)
#> [1] TRUE TRUE TRUE

vec_detect_complete(
  Surv(c(1, 5, 2), c(1, 0, 1))
)
@DavisVaughan
Copy link
Member

I imagine this is #1370, due to kind of a crappy as.data.frame.Surv method that we are probably going to have to manually work around

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