Monday, April 18, 2016

Aggregate Multiple Columns in R

aggregate(cbind(x1, x2)~year+month, data=df1, sum, na.rm=TRUE)

No comments:

Post a Comment