Closed mattsecrest closed 8 months ago
Hmmmm, we could say that survfit2()
does accept these kinds of names. But the error you're seeing is what happens when we pass those args to survival::survfit()
😉
Are you thinking we could parse the formula looking for these names before passing to survival::survfit()
and give a warning before the error message appears?
I see. Since this is ultimately thrown by survival
, let's see if we can fix it there instead: https://github.com/therneau/survival/issues/232
Hey hey @mattsecrest ! I am going to go ahead and close this since it'll automatically work when survival is updated
I always wished
survfit
objects accepted non-syntactic names. Maybe something worth adding tosurvfit2
?Even fixing the error message could be nice, as it is quite cryptic:
Error in `[.data.frame`(mf, ll) : undefined columns selected