View source: R/utilityFunctions.R
| createGroups | R Documentation | 
Assign a group label to items in a vector
createGroups(items, nG)
items | 
 A vector of items  | 
nG | 
 The number of groups  | 
A data frame containing the items and their group labels
x <- paste("item", 1:10, sep = "")
df <- createGroups(x, 3)
print(df)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.