Description Usage Arguments Value See Also Examples
This function is used to determine how to distribute the contents of a data frame across the cluster. It may either be called with a single number representing the total number of rows, or it may be called with a vector of numbers representing the size of groups.
1 | distribute(x, N)
|
x |
Number of items or a vector of group sizes |
N |
Number of nodes |
A vector containing number of rows or a list containing the indices of groups
Other utility functions: between
,
cumall
, cumany
,
cummean
, first
,
lag
, last
,
lead
, n_distinct
,
n_groups
, nth
,
n
1 2 | distribute (100, 4)
distribute (c(25, 25, 50), 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.