Allow subsetting while aggregation