powered by
This function splits one formula into two formulas by symbol.
formula_split(formula, symbol = "|")
This function returns a list of two formulas.
an object of class formula.
formula
a string that is used to split formula into two formulas.
The symbol should be on the right hand side of the formula.
symbol
formula_split("y ~ x1 + x2 | x2 + x3") formula_split("y ~ x1 + x2 : x2 + x3", symbol = ":")
Run the code above in your browser using DataLab