powered by
Given the left-hand side and right-hand side as character vectors, generates a new stats::formula().
stats::formula()
formulate(lhs = NULL, rhs = NULL, env = NULL)
(character(1)) Left-hand side of formula.
character(1)
(character()) Right-hand side of formula. Multiple elements will be collapsed with " + ".
character()
" + "
(environment()) Environment for the new formula. Defaults to NULL.
environment()
NULL
stats::formula().
# NOT RUN { formulate("Species", c("Sepal.Length", "Sepal.Width")) formulate(rhs = c("Sepal.Length", "Sepal.Width")) # }
Run the code above in your browser using DataLab