getGroups function

Extract Grouping Factors from an emdi Object