.\" -*- nroff -*- generated from .Rd format
.BG
.FN pruneLevels
.TL
Prune Factor Levels
.DN
The `levels' attribute of `object' are pruned to contain
only the levels occurring in the factor.
.CS
pruneLevels(object)
.RA
.AG object
an object inheriting from class `factor'.
.RT
an object identical to `object', but with the `levels'
attribute containing only value occurring in the factor.

.SA
`factor', `ordered'
.EX
f1 <- factor(c(1,1,2,3,3,4,5))
levels(f1)
f2 <- f1[4:7]
levels(f2)
levels(pruneLevels(f2))
.KW models
.WR
