Combine formulas by *
or another operator
Usage
multiply_formulas(formula1, formula2, operator = "*")
Arguments
- formula1
formula1
- formula2
formula2
- operator
*
, :
or another operator
Examples
multiply_formulas(~x, ~y)
#> ~(x) * (y)
#> <environment: 0x55e4a8611fe8>
multiply_formulas(~x+y, ~a*b + d:e)
#> ~(x + y) * (a * b + d:e)
#> <environment: 0x55e4a8611fe8>
multiply_formulas(~x+y, ~a*b + d:e, ":")
#> ~(x + y):(a * b + d:e)
#> <environment: 0x55e4a8611fe8>