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
A, B, etc.
The levels default to abbreviated factor names, with
1, etc. pasted on.
SIDE EFFECTS:
when used on the left side of an assignment,
factor.names takes values
and coerces them to the form just described, using the default rules.
SEE ALSO:
,
,
,
,
.
EXAMPLES:
factor.names(catalyst)
des.1 <- fac.design(c(2, 3), rep=2)
factor.names(des.1) <- c("Gender", "Treatment")
# Changes level names to Gndr1 and Gndr2, and Trtm1, etc.