df2aggmat function

Cross-sectional aggregation matrix of a dataframe