add_within: Add within factors

Description Usage Arguments Value Examples

Description

Add within factors

Usage

1
add_within(.data, .by = NULL, ...)

Arguments

.data

the data frame

.by

the grouping column (groups by row if NULL)

...

the names and levels of the new factors

Value

data frame

Examples

1
2
add_random(subj = 2, item =  2) %>%
  add_within("subj", time = c("pre", "post"))

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