redefine.factor {CoCoOldData}R Documentation

Change the number of declared levels for a discrete variable

Description

Redefine the number of levels for a variable.

Usage

redefine.factor(name, levels, missing.levels = 0, object = .current.coco)

Arguments

name A character string with the name of the variable.
levels A integer with the new number of levels.
missing.levels A integer with the new number of missing.levels.
object See exportCoCo.

Value

TRUE

Author(s)

Jens Henrik Badsberg

References

Badsberg, J.H.: A guide to CoCo, JSS, 2001 ( http://www.jstatsoft.org/v06/i04/ ) and Badsberg, J.H.: Xlisp+CoCo, Aalborg University, 1996.

See Also

read.data and enterNames.


[Package Contents]