Construct a list of contrast_spec objects.
Examples
c1 <- contrast(~ A - B, name="A_B")
c2 <- contrast(~ B - C, name="B_C")
contrast_set(c1,c2)
#> [[1]]
#> $A
#> ~A - B
#> <environment: 0x7f8f660675b8>
#>
#> $B
#> NULL
#>
#> $where
#> NULL
#>
#> $name
#> [1] "A_B"
#>
#> attr(,"class")
#> [1] "contrast_formula_spec" "contrast_spec" "list"
#>
#> [[2]]
#> $A
#> ~B - C
#> <environment: 0x7f8f660675b8>
#>
#> $B
#> NULL
#>
#> $where
#> NULL
#>
#> $name
#> [1] "B_C"
#>
#> attr(,"class")
#> [1] "contrast_formula_spec" "contrast_spec" "list"
#>
#> attr(,"class")
#> [1] "contrast_set" "list"