Map Display and Canonical Condition Names
Source:R/design_generics.R, R/event_vector.R, R/event_model.R
condition_map.RdMap display and canonical condition names.
Usage
condition_map(x, drop.empty = TRUE, expand_basis = FALSE, ...)
# S3 method for class 'event_term'
condition_map(x, drop.empty = TRUE, expand_basis = FALSE, ...)
# S3 method for class 'event_model'
condition_map(x, drop.empty = TRUE, expand_basis = FALSE, ...)Value
A tibble mapping display labels to canonical names. For event models, the result also includes the term name and, when available, the corresponding design-matrix column name.
Examples
term <- event_term(
list(
category = factor(c("face", "scene", "face")),
attention = factor(c("attend", "attend", "ignore"))
),
onsets = c(0, 10, 20),
blockids = c(1, 1, 1)
)
condition_map(term)
#> # A tibble: 4 × 2
#> display canonical
#> <chr> <chr>
#> 1 face:attend category.face_attention.attend
#> 2 scene:attend category.scene_attention.attend
#> 3 face:ignore category.face_attention.ignore
#> 4 scene:ignore category.scene_attention.ignore