Grouped Data (Section 6.7-6.8): Using dconstraint function