rnd_allot: rnd_allot: Random allotment into one of two groups of equal...

Description Usage Arguments Value Examples

View source: R/rnd_allot.R

Description

Used when equal sized groups are desired, if the cohort size is odd then it will randomly assign the odd one out to one of the groups. Currently only 2 groups.

Usage

1

Arguments

x

a Vector to assign

Value

An array with x, k assignment groups

Examples

1
2
3
require(jumble)
x <- 1:100
rnd_allot(x)

kmcconeghy/jumble documentation built on Jan. 8, 2020, 8:52 a.m.