summarise_xpdb function

Group/ungroup and summarize variables in an xpdb