Aggregate a data.frame to the document/term level by calculating how many times a term occurs per document
Useful links