parse_to_formula: Parse symbols to LHS and RHS of formula

Description Usage Arguments Value Examples

View source: R/formula.R

Description

Most common use cases would be passing string to lhr and rhs of the formula.

Usage

1
parse_to_formula(fun, lhs, rhs, ...)

Arguments

fun

Function that accept formula object as first argument

lhs

(Quote or Unquoted) Expression for left-hand sided of the formula

rhs

(Quote or Unquoted) Expression for right-hand sided of the formula

...

pass to fun

Value

object as return by fun

Examples

1
parse_to_formula(lm, "Sepal.Length", "Sepal.Width", data = iris)

Lightbridge-AI/lbr documentation built on Dec. 27, 2021, 8:09 p.m.