parse_to_formula_2s: Parse Strings to LHS and RHS of formula

View source: R/formula.R

parse_to_formula_2sR Documentation

Parse Strings to LHS and RHS of formula

Description

Most generalized approach to parse formula

Usage

parse_to_formula_2s(fun = "lm", lhs, rhs, args = list(), pkg = "stats")

Arguments

fun

Function to call

lhs

(Symbol) left-hand sided of the formula

rhs

(Symbol) right-hand sided of the formula

args

A list of arguments to fun

pkg

Package to call fun

Value

object as return by fun

Examples

parse_to_formula_2s(fun = "lm", "Sepal.Length", "Species", pkg = "stats", args = list(data = iris))

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