Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistent results with all_equal() with slightly different factor levels #2440

Closed
krlmlr opened this issue Feb 19, 2017 · 0 comments
Closed

Inconsistent results with all_equal() with slightly different factor levels #2440

krlmlr opened this issue Feb 19, 2017 · 0 comments
Labels
Milestone

Comments

@krlmlr
Copy link
Member

@krlmlr krlmlr commented Feb 19, 2017

library(dplyr, warn.conflicts = FALSE)
all_equal(data_frame(a = factor("a")), data_frame(a = factor("a", levels = c("a", "b"))))
#> Warning in equal_data_frame(target, current, ignore_col_order =
#> ignore_col_order, : joining factors with different levels, coercing to
#> character vector
#> [1] TRUE
all_equal(data_frame(a = factor("a", levels = c("a", "b"))), data_frame(a = factor("a")))
#> [1] "Factor levels not equal for column a"
@krlmlr krlmlr added this to the data frame 1 milestone Feb 20, 2017
@krlmlr krlmlr closed this in #2442 Feb 20, 2017
@lock lock bot locked as resolved and limited conversation to collaborators Jun 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant