factorize

0th

Percentile

Attempt to convert grouping variables to factors

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.

Keywords
models, utilities
Usage
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

Aliases
  • factorize
Documentation reproduced from package lme4, version 1.1-21, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.