selectgroups function

Selection of groups on which to focus