Notes on social media mining with R