Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

toformula

Converts strings to formula


Description

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

Usage

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

Examples

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

lava

Latent Variable Models

v1.6.10
GPL-3
Authors
Klaus K. Holst [aut, cre], Brice Ozenne [ctb], Thomas Gerds [ctb]
Initial release
2021-09-01

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.