I am trying to aggregate multiple columns given certain conditions using R (data.table?)... I have one data frame df1 with columns 12:262 that contains species abundance (ea