Fixed factor levels in groupBy()