parse_to_formula: Parse symbols to LHS and RHS of formula

View source: R/formula.R

parse_to_formulaR Documentation

Parse symbols to LHS and RHS of formula

Description

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

Usage

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

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

Lightbridge-KS/lbmod documentation built on Jan. 28, 2024, 6:21 p.m.