Function name: group.sum
Description:

This is the rowsum, but only for vectors. No names are returned, simply a matrix with one column, just like rowsum. Note that this command works only for vectors.

Authors: Francois Romain (We found the C++ code in http://stackoverflow.com/questions/16975034/rcpp-equivalent-for-rowsum)