Skip to content
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 reframe() #143

Open
domq opened this issue Mar 10, 2023 · 1 comment
Open

Implement reframe() #143

domq opened this issue Mar 10, 2023 · 1 comment
Labels
feature a feature request or enhancement

Comments

@domq
Copy link

domq commented Mar 10, 2023

This is a successor to #102 of sorts.

  • What I am trying to do:
    library(dplyr)
    library(multidplyr)
    # install.packages("broom")
    
    cluster <- new_cluster(2)
    iris %>% group_by(Species) %>% partition(cluster) %>% reframe(broom::tidy(lm(Petal.Length ~ Sepal.Length)))
  • What I expect: the same data frame that I obtain when doing that without the %>% partition(cluster) part (modulo performance).
  • What I get instead:
    Error in UseMethod("reframe") :
    no applicable method for 'reframe' applied to an object of class "multidplyr_party_df"
    
@hadley
Copy link
Member

hadley commented Oct 31, 2023

Thanks for the suggestion! Will definitely consider it when I'm next working on multidplyr.

@hadley hadley added the feature a feature request or enhancement label Oct 31, 2023
@hadley hadley changed the title implementation of reframe() for multidplyr_party_df Implement reframe() Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature a feature request or enhancement
Projects
None yet
Development

No branches or pull requests

2 participants