.checkFactor {wrMisc}R Documentation

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
)

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

Value

This function returns a corrceted/adjusted factor

See Also

factor

Examples

.checkFactor(gl(3,2))

[Package wrMisc version 1.15.0.3 Index]