R Package to aggregate Panel Data