toformula function

Converts strings to formula

Converts strings to formula

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

Returns

An object of class formula

Examples

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

See Also

as.formula,

Author(s)

Klaus K. Holst

  • Maintainer: Klaus K. Holst
  • License: GPL-3
  • Last published: 2025-01-12