We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
find_duplicate_cols()
NA
find_duplicate_cols() cannot handle duplicate columns when NA values are present.
reprex:
df <- data.frame( x = c(1, NA), y = c(1, NA) ) fixr::find_duplicate_cols(df) #> Error in if (all(df[, i] == df[, j])) {: missing value where TRUE/FALSE needed
Created on 2024-05-03 by the reprex package (v2.0.1)
The text was updated successfully, but these errors were encountered:
Hey @jcken95 Thanks for sharing this issue, I will resolve this.
Sorry, something went wrong.
I imagine identical(df[, i], df[, j]) is more appropriate than all(df[, i] == df[, j]) in this instance
identical(df[, i], df[, j])
all(df[, i] == df[, j])
No branches or pull requests
find_duplicate_cols()
cannot handle duplicate columns whenNA
values are present.reprex:
Created on 2024-05-03 by the reprex package (v2.0.1)
The text was updated successfully, but these errors were encountered: