factorize: Attempt to convert grouping variables to factors

Description Usage Arguments Value

View source: R/utilities.R

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.

Usage

1
factorize(x,frloc,char.only=FALSE)

Arguments

x

a formula

frloc

a data frame

char.only

(logical) convert only character variables to factors?

Value

a copy of the data frame with factors converted


lme4 documentation built on May 29, 2017, 8:40 p.m.

Search within the lme4 package
Search all R packages, documentation and source code