In a word, no. It is behaving as documented and adding a warning would just
confuse others who have been using the feature as intended.
This belongs in the same bin as "as.integer(f) vs as.integer(as.character(f))"
and "x[f] vs. x[as.character(f)]"
-pd
> On 2 Oct 2018, at 17:18 , Emil Bode
Something that bit me:
The function relevel takes a factor, and a reference level to be promoted to
the first place.
If “ref” is a character this level is promoted, if it’s a numeric the “ref”-th
level is promoted.
Which turns out to be very confusing if you have factor with numeric values
(e.g.