Converts strings to formula
Converts a vector of predictors and a vector of responses (characters) i#nto a formula expression.
toformula(y = ".", x = ".")
y
: vector of predictorsx
: vector of responsesAn object of class formula
toformula(c("age","gender"), "weight")
as.formula
,
Klaus K. Holst