Quanteda - Apply Function to DFM Over Document Variables <p>I am using R's quanteda package and the latest versions for both R and the package. I have a corpus of documents which number in the millions.</p> <p>Let's suppose I have a DFM generated from quanteda with each document having a docvar of the date. There are thousands of documents generated in a given day, but I want to obtain the DFMs applied to the documents by day (so that I have total word counts for each term by day). I know that quanteda is built using data.table, so it should be possible to do this, but I have found little in the "Getting Started with Quanteda" or on StackOverflow that gives a clean way of doing this.</p> <p>Any suggestions?</p>