Learn R Programming

wrMisc (version 1.15.3.1)

.checkFactor: Check Factor

Description

This function was designed to check a factor object

Usage

.checkFactor(
  fac,
  facNa = NULL,
  minLev = 2,
  silent = FALSE,
  debug = FALSE,
  callFrom = NULL
)

Value

This function returns a corrceted/adjusted factor

Arguments

fac

(factor) main input

facNa

(character) level-names

minLev

(integer) minium number of levels

silent

(logical) suppress messages

debug

(logical) additional messages for debugging

callFrom

(character) allow easier tracking of messages produced

See Also

Examples

Run this code
.checkFactor(gl(3,2))

Run the code above in your browser using DataLab