add_between: Add between factors

Description Usage Arguments Value Examples

Description

Add between factors

Usage

1
add_between(.data, .by = NULL, ..., .shuffle = FALSE, .prob = NULL)

Arguments

.data

the data frame

.by

the grouping column (groups by row if NULL)

...

the names and levels of the new factors

.shuffle

whether to assign cells randomly or in "order"

.prob

probability of each level, equal if NULL

Value

data frame

Examples

1
2
3
add_random(subj = 4, item = 2) %>%
  add_between("subj", condition = c("cntl", "test")) %>%
  add_between("item", version = c("A", "B"))

faux documentation built on Sept. 14, 2021, 1:08 a.m.