November 21, 2018

R - Group by aggregation

x_aggr <- aggregate(x$a, by=list(mth=x$mth_end_dt), FUN=sum)

No comments:

Post a Comment