toformula: Converts strings to formula

Description Usage Arguments Value Author(s) See Also Examples

Description

Converts a vector of predictors and a vector of responses (characters) i#nto a formula expression.

Usage

1
toformula(y = ".", x = ".")

Arguments

y

vector of predictors

x

vector of responses

Value

An object of class formula

Author(s)

Klaus K. Holst

See Also

as.formula,

Examples

1
toformula(c("age","gender"), "weight")

lava documentation built on Sept. 5, 2021, 5:43 p.m.