no warning message about factor to character coercion shown when binding dataframes #2317
With dplyr v0.4.0 warning messages were introduced when a coercion from type factor to character is needed to produce a valid result using
If I run the following, the warning message is shown as expected:
> bind_rows(data_frame(a = factor("a")), data_frame(a = "a")) # A tibble: 2 × 1 a <chr> 1 a 2 a Warnmeldung: In bind_rows_(x, .id) : binding factor and character vector, coercing into character vector
Now if I switch the order of the dataframes, no warning message appears although the same coercion from type
> bind_rows(data_frame(a = "a"), data_frame(a = factor("a"))) # A tibble: 2 × 1 a <chr> 1 a 2 a
This behaviour seems confusing and in my eyes the warning message should appear in both cases.
The text was updated successfully, but these errors were encountered: