An R package to flexible rearrange, reshape and aggregate data