R/utils.R
leftside.Rd
Extract the left-hand side of a formula
leftside(x)
(formula) A two-sided formula, e.g., y ~ x1 + x2.
formula
y ~ x1 + x2
(character(1)) The name of the left-hand side of the formula.
character(1)
leftside(y ~ x) #> [1] "y"