1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
\name{factorize}
\alias{factorize}
\title{Attempt to convert grouping variables to factors}
\usage{
factorize(x,frloc,char.only=FALSE)
}
\arguments{
\item{x}{a formula}
\item{frloc}{a data frame}
\item{char.only}{(logical) convert only \code{character} variables to factors?}
}
\description{
If variables within a data frame are not factors, try to
convert them. Not intended for end-user use; this is
a utility function that needs to be exported, for technical reasons.
}
\value{
a copy of the data frame with factors converted
}
\keyword{models}
\keyword{utilities}
|