FInal. Aggregate than using table and tapply.