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
df1 <- tibble::tibble(x = c(NA, "e")) key <- vctrs::vec_group_loc(df1) vctrs::vec_match(key$key, df1, na_equal = FALSE) #> [1] NA 2 df1 <- tibble::tibble(x = c(NA, "é")) key <- vctrs::vec_group_loc(df1) vctrs::vec_match(key$key, df1, na_equal = FALSE) #> [1] 1 2
Created on 2020-11-17 by the reprex package (v0.3.0.9001)
From tidyverse/dplyr#5568
The text was updated successfully, but these errors were encountered:
This looks fixed in the dev version!
df1 <- tibble::tibble(x = c(NA, "e")) key <- vctrs::vec_group_loc(df1) vctrs::vec_match(key$key, df1, na_equal = FALSE) #> [1] NA 2 df1 <- tibble::tibble(x = c(NA, "é")) key <- vctrs::vec_group_loc(df1) vctrs::vec_match(key$key, df1, na_equal = FALSE) #> [1] NA 2
Probably something to do with the switch to vctrs:::vec_normalize_encoding()
vctrs:::vec_normalize_encoding()
Worth adding this as a test case though, ill do that.
Sorry, something went wrong.
For some reason the old obj_maybe_translate_encoding() was turning NA_character_ into "NA".
obj_maybe_translate_encoding()
NA_character_
"NA"
x <- c(NA, "é") x #> [1] NA "é" vctrs:::obj_maybe_translate_encoding(x) #> [1] "NA" "é"
The new vec_normalize_encoding() doesn't do that:
vec_normalize_encoding()
x <- c(NA, "é") Encoding(x) #> [1] "unknown" "UTF-8" vctrs:::vec_normalize_encoding(x) #> [1] NA "é" y <- x y <- iconv(y, "UTF-8", "latin1") Encoding(y) #> [1] "unknown" "latin1" vctrs:::vec_normalize_encoding(y) #> [1] NA "é"
Successfully merging a pull request may close this issue.
Created on 2020-11-17 by the reprex package (v0.3.0.9001)
From tidyverse/dplyr#5568
The text was updated successfully, but these errors were encountered: