File: factorize.Rd

package info (click to toggle)
lme4 2.0-1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 6,860 kB
  • sloc: cpp: 2,543; makefile: 2
file content (22 lines) | stat: -rw-r--r-- 584 bytes parent folder | download | duplicates (7)
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}