Error in xtfrm.data.frame(x) : cannot xtfrm data frames

I have got this error twice recently - no idea why, but in the last instance it was solved by changing tibble to data.frame, that is:

starwars <- data.frame(starwars) #this made the below command work instead of showing the error message
OptimalCutpoints::optimal.cutpoints("height", "gender", methods = c("Youden", "ROC01"), tag.healthy = "masculine", data=starwars)

Any idea what is not working?

Probably when selecting a column from a tibble, the result is a one-column tibble but when selecting from a data frame it's a vector.

Thanks, that is also what I suspected, although I have no idea what the error message is telling me :wink:

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.