groups() returns the design group names, equivalent to
colnames(design(object)). groups()<- renames design groups,
updating colnames(design) and rownames(contrasts) together.
Details
In principle, design groups are derived identifiers and should not
need to be renamed directly (prefer re-running groups_to_sedesign()
with updated inputs). groups()<- is provided for convenience, but
use it with care: design_df (and therefore factors() labels
derived from group names) is rebuilt from the new group names, which
resets any customized factors()<- labels if the number of
underlying factors changes.
See also
Other jam experiment design:
SEDesign(),
[,SEDesign-method,
check_sedesign(),
contrast2comp(),
contrast_colors_by_group(),
contrast_names_to_sedesign(),
contrastnames(),
contrasts(),
contrasts<-(),
contrasts_to_factors(),
contrasts_to_venn_setlists(),
design,SEDesign-method,
draw_oneway_contrast(),
draw_twoway_contrast(),
factors(),
filter_contrast_names(),
groups_to_sedesign(),
plot.SEDesign(),
plot_sedesign(),
print,SEDesign-method,
samples(),
sedesign_to_factors(),
sort_contrasts(),
validate_sedesign()