View source: R/create-groups.R
groups_of | R Documentation |
Create groups of a specified size. Where the number of members does not divide evenly by the requires size, larger groups are preferred, rather than extra groups.
groups_of(size = NULL, ..., n_groups = NULL)
size |
Numeric; Number of individuals per group |
... |
Unquoted labels for idividuals |
n_groups |
obsolete |
Matrix with size
columns
groups_of(size = 2, a,b,c,d,e,f,g,h) groups_of(size = 3, a,b,c,d,e,f,g,h) ### groups_of(size = 2, a,b,c,d,e,f,g,h,i,j) groups_of(size = 3, a,b,c,d,e,f,g,h,i,j) groups_of(size = 4, a,b,c,d,e,f,g,h,i,j) #### groups_of(size = 4, a,b,c,d,e,f,g,h,i,j,k) #### no print method
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.