chagend aggregation from dplyr to plyr as turf wasn't working with the latest version of dplyr