-
Notifications
You must be signed in to change notification settings - Fork 74
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
Implement distinct
#117
Comments
Can you please provide a minimal reprex (reproducible example)? The goal of a reprex is to make it as easy as possible for me to recreate your problem so that I can fix it: please help me help you! If you've never heard of a reprex before, start by reading about the reprex package, including the advice further down the page. Please make sure your reprex is created with the reprex package as it gives nicely formatted output and avoids a number of common pitfalls. |
Dear Hadley,
So I paste normal code with data which is available for everyone (from package nycflights13) and gives the same error as in my situation:
|
Here is a minimal reprex: library(multidplyr)
library(dplyr, warn.conflicts = FALSE)
cluster <- multidplyr::new_cluster(2)
mtcars2 <- partition(mtcars, cluster)
mtcars2 %>% distinct()
#> Error in UseMethod("distinct"): no applicable method for 'distinct' applied to an object of class "multidplyr_party_df" Created on 2021-05-21 by the reprex package (v2.0.0) Looks like I forgot to provide a distinct method. |
Dear Hadley, |
I will add it next time I work on multidplyr. |
|
Any chance one of you came up with a fix for this ? |
distinct
This comment is now 3 years old, is there and maintenance planend to fix the mentioned issu(es)? I would be very interested in a further development of the package. |
@JohannesFriedrich I don't have time to work on it right now, but I'd be happy to review PRs. (And I don't think this would be that hard to fix following the template of the other methods.) |
I have a problem with calculations on few cores using multidplyr in R. I have a data to which i give a number (data will be grouped by number and data with number 1 will be sens to cluster 1 etc.) like in code below:
Also, I send to each cluster which will be calculating library, other values and functions.
After data is split and send to cluster I want to start calculations and collect results:
dane %>% select() %>% distinct() %>% ...
but unfortunatelly I have this error and I don't know what to do to solve this problem [instead of distinct(), I use unique but other error show.]
"Error in command 'UseMethod ("distinct")': inapplicable method for 'distinct' applied to the class object "multidplyr_party_df""
The text was updated successfully, but these errors were encountered: