Using setequal()
with a grouped data frame produces an error using dplyr 0.7.6
library(dplyr)
x <- iris %>% group_by(Species)
setequal(iris, iris)
setequal(iris, x)
setequal(x, iris)
setequal(x, x)
Output:
> setequal(iris, iris)
TRUE
> setequal(iris, x)
TRUE
> setequal(x, iris)
Error in grouped_df_impl(out, group_vars(x), group_drop(x), FALSE) :
Could not convert using R function: as.data.frame.
> setequal(x, x)
Error in grouped_df_impl(out, group_vars(x), group_drop(x), FALSE) :
Could not convert using R function: as.data.frame.
Using the development version dplyr 0.7.99.9000
I get the following:
> setequal(x, iris)
Error in grouped_df_impl(out, group_vars(x), group_drop(x), FALSE) :
unused arguments (group_drop(x), FALSE)
> setequal(x, x)
Error in grouped_df_impl(out, group_vars(x), group_drop(x), FALSE) :
unused arguments (group_drop(x), FALSE)
Thanks, confirmed. Fixed in master
, we might want to release 0.7.7. Please ungroup arguments to setequal()
for now.
Closing as this is fixed in master.
Added this to the new r-0.7.8
branch, should we ever want to submit another minor update.
This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/