Learn R Programming

multiplyr (version 0.1.1)

partition_group: Partition data so that each group is wholly on a node

Description

Partitions data across the cluster such that each group is wholly contained on a single node.

Usage

partition_group(.self, ...)
partition_group_(.self, ..., .dots)

Arguments

.self
Data frame
...
Additional parameters
.dots
Workaround for non-standard evaluation

Value

Data frame

Details

This should not typically be called explicitly; group_by achieves the same thing. Generally speaking it would be fairly pointless to group things and then not have each group fully accessible, but theoretically is possible to so (use group_by (..., auto_partition=FALSE).

See Also

Other cluster functions: partition_even, shutdown

Examples

Run this code

dat <- Multiplyr (x=1:100, G=rep(c("A", "B", "C", "D"), each=25))
dat %>% partition_group (G)
dat %>% shutdown()

Run the code above in your browser using DataLab