Counting duplicate template comments, adding sentiment scores, visualizations in R