Returns or changes the names of the factors and the names of the levels of the
factors.
USAGE:
factor.names(design)
factor.names(design) <- values
REQUIRED ARGUMENTS:
design:
a design or data frame.
Missing values (NA) are allowed.
OPTIONAL ARGUMENTS:
values:
either a list, similar to the returned value of factor.names, or a
vector, to be used as the names of the factors.
In the second case, the factor levels will default as below.
VALUE:
a list, whose "names"
attribute contains the names of the factors in the design, and
whose elements are the levels for the corresponding factors.
Defaults will be produced wherever necessary: the factor names default
to
etc.
The levels default to abbreviated factor names, with
etc. pasted on.
SIDE EFFECTS:
when used on the left side of an assignment,
takes
and coerces them to the form just described, using the default rules.