1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/toformula.R
\name{toformula}
\alias{toformula}
\title{Converts strings to formula}
\usage{
toformula(y = ".", x = ".")
}
\arguments{
\item{y}{vector of predictors}
\item{x}{vector of responses}
}
\value{
An object of class \code{formula}
}
\description{
Converts a vector of predictors and a vector of responses (characters) i#nto
a formula expression.
}
\examples{
toformula(c("age","gender"), "weight")
}
\seealso{
\code{\link{as.formula}},
}
\author{
Klaus K. Holst
}
\keyword{models}
\keyword{utilities}
|