formulate

0th

Percentile

Create Formulas

Given the left-hand side and right-hand side as character vectors, generates a new stats::formula().

Usage
formulate(lhs = NULL, rhs = NULL, env = NULL)
Arguments
lhs

:: character(1) Left-hand side of formula.

rhs

:: character() Right-hand side of formula. Multiple elements will be collapsed with " + ".

env

:: environment() Environment for the new formula. Defaults to NULL.

Value

stats::formula().

Aliases
  • formulate
Examples
# NOT RUN {
formulate("Species", c("Sepal.Length", "Sepal.Width"))
formulate(rhs = c("Sepal.Length", "Sepal.Width"))
# }
Documentation reproduced from package mlr3misc, version 0.1.0, License: LGPL-3

Community examples

Looks like there are no examples yet.