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

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

Arguments

y

vector of predictors

x

vector of responses

Value

An object of class formula

See also

Author

Klaus K. Holst

Examples

toformula(c("age","gender"), "weight")
#> c(age, gender) ~ weight #> <environment: 0x55d8cd652f00>