I have a large dataset (almost 300K rows) with multiple years of information (2003-2016). I'm trying to assign size into a Small, Medium, and Large category by year. My first attempt was to determine the quartiles then manually assign the size to a category but I'm sure there is a more efficient way of doing this. Thank you for your help.
[TABLE="width: 158"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD]Year[/TD]
[TD]Size[/TD]
[/TR]
[TR]
[TD]2003[/TD]
[TD]136[/TD]
[/TR]
[TR]
[TD]2003[/TD]
[TD]146[/TD]
[/TR]
[TR]
[TD]2003[/TD]
[TD]107[/TD]
[/TR]
[TR]
[TD]2003[/TD]
[TD]139[/TD]
[/TR]
[TR]
[TD]2003[/TD]
[TD]152[/TD]
[/TR]
[TR]
[TD]2003[/TD]
[TD]125[/TD]
[/TR]
[TR]
[TD]2003[/TD]
[TD]102[/TD]
[/TR]
[TR]
[TD]2004[/TD]
[TD]147[/TD]
[/TR]
[TR]
[TD]2004[/TD]
[TD]106[/TD]
[/TR]
[TR]
[TD]2004[/TD]
[TD]119[/TD]
[/TR]
[TR]
[TD]2004[/TD]
[TD]125[/TD]
[/TR]
[TR]
[TD]2004[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2004[/TD]
[TD]152[/TD]
[/TR]
[TR]
[TD]2004[/TD]
[TD]107[/TD]
[/TR]
[TR]
[TD]2004[/TD]
[TD]116[/TD]
[/TR]
[TR]
[TD]2005[/TD]
[TD]129[/TD]
[/TR]
[TR]
[TD]2005[/TD]
[TD]106[/TD]
[/TR]
[TR]
[TD]2005[/TD]
[TD]102[/TD]
[/TR]
[TR]
[TD]2005[/TD]
[TD]114[/TD]
[/TR]
[TR]
[TD]2005[/TD]
[TD]120[/TD]
[/TR]
[TR]
[TD]2005[/TD]
[TD]126[/TD]
[/TR]
[TR]
[TD]2005[/TD]
[TD]118[/TD]
[/TR]
[TR]
[TD]2006[/TD]
[TD]119[/TD]
[/TR]
[TR]
[TD]2006[/TD]
[TD]108[/TD]
[/TR]
[TR]
[TD]2006[/TD]
[TD]149[/TD]
[/TR]
[TR]
[TD]2006[/TD]
[TD]143[/TD]
[/TR]
[TR]
[TD]2006[/TD]
[TD]132[/TD]
[/TR]
[TR]
[TD]2006[/TD]
[TD]128[/TD]
[/TR]
[TR]
[TD]2006[/TD]
[TD]135[/TD]
[/TR]
[TR]
[TD]2006[/TD]
[TD]113[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 158"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD]Year[/TD]
[TD]Size[/TD]
[/TR]
[TR]
[TD]2003[/TD]
[TD]136[/TD]
[/TR]
[TR]
[TD]2003[/TD]
[TD]146[/TD]
[/TR]
[TR]
[TD]2003[/TD]
[TD]107[/TD]
[/TR]
[TR]
[TD]2003[/TD]
[TD]139[/TD]
[/TR]
[TR]
[TD]2003[/TD]
[TD]152[/TD]
[/TR]
[TR]
[TD]2003[/TD]
[TD]125[/TD]
[/TR]
[TR]
[TD]2003[/TD]
[TD]102[/TD]
[/TR]
[TR]
[TD]2004[/TD]
[TD]147[/TD]
[/TR]
[TR]
[TD]2004[/TD]
[TD]106[/TD]
[/TR]
[TR]
[TD]2004[/TD]
[TD]119[/TD]
[/TR]
[TR]
[TD]2004[/TD]
[TD]125[/TD]
[/TR]
[TR]
[TD]2004[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2004[/TD]
[TD]152[/TD]
[/TR]
[TR]
[TD]2004[/TD]
[TD]107[/TD]
[/TR]
[TR]
[TD]2004[/TD]
[TD]116[/TD]
[/TR]
[TR]
[TD]2005[/TD]
[TD]129[/TD]
[/TR]
[TR]
[TD]2005[/TD]
[TD]106[/TD]
[/TR]
[TR]
[TD]2005[/TD]
[TD]102[/TD]
[/TR]
[TR]
[TD]2005[/TD]
[TD]114[/TD]
[/TR]
[TR]
[TD]2005[/TD]
[TD]120[/TD]
[/TR]
[TR]
[TD]2005[/TD]
[TD]126[/TD]
[/TR]
[TR]
[TD]2005[/TD]
[TD]118[/TD]
[/TR]
[TR]
[TD]2006[/TD]
[TD]119[/TD]
[/TR]
[TR]
[TD]2006[/TD]
[TD]108[/TD]
[/TR]
[TR]
[TD]2006[/TD]
[TD]149[/TD]
[/TR]
[TR]
[TD]2006[/TD]
[TD]143[/TD]
[/TR]
[TR]
[TD]2006[/TD]
[TD]132[/TD]
[/TR]
[TR]
[TD]2006[/TD]
[TD]128[/TD]
[/TR]
[TR]
[TD]2006[/TD]
[TD]135[/TD]
[/TR]
[TR]
[TD]2006[/TD]
[TD]113[/TD]
[/TR]
</tbody>[/TABLE]