add_recode | R Documentation |
Recode a categorical column
add_recode(.data, .col, .newcol = paste0(col, ".c"), ...)
.data |
the data frame |
.col |
the column to recode |
.newcol |
the name of the recoded column (defaults to col.c) |
... |
coding for categorical column |
data frame with new fixed effects columns
add_random(subj = 4, item = 4) %>%
add_between("subj", cond = c("cntl", "test")) %>%
add_recode("cond", "cond.t", cntl = 0, test = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.