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

comparedf: No difference detected if column changes from integer to numeric #373

Open
mpettis opened this issue Dec 17, 2024 · 0 comments
Open

Comments

@mpettis
Copy link

mpettis commented Dec 17, 2024

I don't know if this is as-intended or not, but when a column changes value from 0L to 1, it changes type and value, and comparedf() doesn't alert me to the change.

library(arsenal)
library(tibble)

#;; Note, x is integer in first tibble, a dbl in the second one.
comparedf(tibble(x=0L), tibble(x=1))
#> Compare Object
#> 
#> Function Call: 
#> comparedf(x = tibble(x = 0L), y = tibble(x = 1))
#> 
#> Shared: 1 non-by variables and 1 observations.
#> Not shared: 0 variables and 0 observations.
#> 
#> Differences found in 0/0 variables compared.
#> 0 variables compared have non-identical attributes.

Created on 2024-12-17 with reprex v2.1.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant