Perform fast grouped, weighted, and panel-data statistical operations on R vectors, matrices, and data frames using C/C++