Skip to contents

Construct a list of contrast_spec objects.

Usage

contrast_set(...)

Arguments

...

A variable-length list of contrast_spec objects.

Value

A list of contrast_spec objects with class "contrast_set".

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"