createGroups: Assign a group label to items in a vector

View source: R/utils.R

createGroupsR Documentation

Assign a group label to items in a vector

Description

Assign a group label to items in a vector

Usage

createGroups(items, nG)

Arguments

items

A vector of items

nG

The number of groups

Value

A data frame containing the items and their group labels

Examples

x <- paste("item", 1:10, sep = "")
df <- createGroups(x, 3)
print(df)


iMRMC documentation built on May 31, 2023, 8:36 p.m.

Related to createGroups in iMRMC...