Get a data frame of contrast values from a factor vector
Examples
dat <- sim_design(
between = list(group = c("A", "B")),
n = 5, plot = FALSE)
get_contrast_vals(dat$group)
#> B
#> 1 0
#> 2 0
#> 3 0
#> 4 0
#> 5 0
#> 6 1
#> 7 1
#> 8 1
#> 9 1
#> 10 1