-
Notifications
You must be signed in to change notification settings - Fork 66
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
Should vec_proxy_compare() have a fallback? #210
Comments
This is needed for (e.g.) |
Quick hack to unblock tidyr development. Needs fuller consideration in #210.
For sorting list columns we have changed usage |
@DavisVaughan We can now close this I think? |
Yea, to close the loop: We have vctrs:::vec_proxy_order.list
#> function(x, ...) {
#> # Order lists by first appearance.
#> # This allows list elements to be grouped in `vec_order()`.
#> # Have to separately ensure missing values are propagated.
#> out <- vec_duplicate_id(x)
#> na <- vec_equal_na(x)
#> out <- vec_assign(out, na, NA_integer_)
#> out
#> }
#> <bytecode: 0x7fbcc78e38e8>
#> <environment: namespace:vctrs>
vctrs:::vec_proxy_compare.list
#> function(x, ...) {
#> stop_unsupported(x, "vec_proxy_compare")
#> }
#> <bytecode: 0x7fbcc7a575c0>
#> <environment: namespace:vctrs> Created on 2022-09-12 with reprex v2.0.2 |
It would be nice to be able to sort data frames containing list columns. Should
vec_proxy_compare()
returnseq_along(x)
? Or should it returnNULL
, and then failures would be communicated downstream?The text was updated successfully, but these errors were encountered: