Allowed rowAgg to take normal R objects as inputs