| shuffle_groups {sampleInfo} | R Documentation |
shuffle_groups(x);
unlike the sample_groups api, which sorts the sample groups by the group label in ascending order, this function shuffles the sample group order in a random manner, which is helpful for the random color assignment or the permutation test of the sample groups.
a tuple list of the sample groups in a random order: the slot key of the list is the sample group label and the slot value is a vector of the SampleInfo object that belongs to the corresponding sample group.