Converts a vector of predictors and a vector of responses (characters) i#nto a formula expression.
toformula(y = ".", x = ".")
vector of predictors
vector of responses
An object of class formula
toformula(c("age","gender"), "weight")
#> c(age, gender) ~ weight
#> <environment: 0x559770334e30>