R script for aggregating parts of speech in frequency counts.