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
Make partition work with invoke_rows #51
Comments
|
Wrapping in |
|
Thanks! |
|
The work around now gives me: I am not understanding what goes wrong here... |
|
Most likely because you have updated |
|
Sorry to resurrect this issue, I'm getting the same Here's a minimal example: library(tidyverse)
library(multidplyr)
df <- data.frame(A=c(1,2,3,4,5,6),
B=c(4,5,5,6,8,4),
group=c(1,1,1,2,2,2))
cluster <- create_cluster(2)
byGroup <- partition(df, group, cluster=cluster)
The resulting byGroup is a party_df that looks correct to me: > byGroup
Source: party_df [6 x 3]
Groups: group
Shards: 2 [3--3 rows]
# S3: party_df
A B group
<dbl> <dbl> <dbl>
1 1 4 1
2 2 5 1
3 3 5 1
4 4 6 2
5 5 8 2
6 6 4 2Here's the relevant parts of my R version 3.3.3 (2017-03-06)
Platform: x86_64-apple-darwin13.4.0 (64-bit)
Running under: macOS Sierra 10.12.6
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] multidplyr_0.0.0.9000 modelr_0.1.1 dplyr_0.7.4 purrr_0.2.4
[5] readr_1.1.1 tidyr_0.7.2 tibble_1.3.4 ggplot2_2.2.1
[9] tidyverse_1.1.1 bnlearn_4.2 |
|
This will eventually be fixed by an implementation |
It seems
invoke_rowsdoesn't accept aparty_dfobject. That would be useful...-->
Error: .d must be a data frameThe text was updated successfully, but these errors were encountered: