I have a data set that I'd like to organize into a list but am unsure of the most efficient way to do so. It's a list of sales people and products sold:
rowId repNum prodNum
001 12006 335506883
002 12008 152348345
003 12055 993047386
004 12006 294726636
005 12069 110847537
006 12006 335506883
007 12006 152348345
... ... ...
I'd like to create a list where each element contains a vector of items that rep has sold, my initial idea was to use tapply
but that needs a function to net by. Any other suggestions?