You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
library(missRanger)
library(ggplot2)
imp<- missRanger(diamonds|> generateNA(seed=1))
# Errorin`[<-`:!Assigneddata`pred`mustbecompatiblewithexistingdata.
ℹ Erroroccurredforcolumn`cut`.Causedbyerrorin`vec_assign()`:!Can't convert <factor<ff2b9>> to <ordered<ff2b9>>.Run `rlang::last_trace()` to see where the error occurred.
The problem does not occur when:
diamonds is converted to a normal data.frame
Predictive mean matching is used via pmm.k > 0
The ordered factor is turned into an unordered factor
Tibbles seem to be picky with ordered factors in subset-assignment.
The text was updated successfully, but these errors were encountered:
The following code raises an error:
The problem does not occur when:
pmm.k > 0
Tibbles seem to be picky with ordered factors in subset-assignment.
The text was updated successfully, but these errors were encountered: