This S3 class represents a data frame partitioned across workers in a cluster. You can use this constructor if you have already spread data frames spread across a cluster. If not, start with [partition()] instead.
Examples
# If a real example, you might spread file names across the clusters
# and read in using data.table::fread()/vroom::vroom()/qs2::qs_read().
cl <- default_cluster()
cluster_send(cl[1], n <- 10)
cluster_send(cl[2], n <- 15)
cluster_send(cl, df <- data.frame(x = runif(n)))
df <- party_df(cl, "df")
df
#> Source: party_df [25 x 1]
#> Shards: 2 [10--15 rows]
#>
#> # A data frame: 25 × 1
#> x
#> <dbl>
#> 1 0.701
#> 2 0.781
#> 3 0.483
#> 4 0.249
#> 5 0.688
#> 6 0.432
#> # ℹ 19 more rows