Files supporting "Talking Politics on Social Media"
University of Cambridge
MetadataShow full item record
Fredheim, R., & Moore, A. (2015). Files supporting "Talking Politics on Social Media" [Dataset]. https://www.repository.cam.ac.uk/handle/1810/252508
This repository includes a description of the files needed to replicate the findings reported in 'Talking Politics on Social Media' by Rolf Fredheim and Alfred Moore --README.txt --anon.Rdata Rdata file containing deidentified commenting data needed to reproduce main figures and findings reported in the paper. --reproduction.py script used to identify reason-giving, agreement, disagreement, and insults. This script requires Python 2, version 2.5 or higher, and the modules codecs, ner, pyenchant, re, and urllib2. --suppMat.Rmd: R markdown file used to generate the supplementary materials. It includes examples of comments identified as positive matches, as well as the code necessary to recreate figures, statistical tests, etc. This script requires the following packages: data.table, ggthemes, ggplot2, gridExtra, knitr, Rmisc, and scales. The supplementary materials were compiled through Rstudio 0.99.484 on a computer running Ubuntu 14.04 with a full installation of TeX and Pandoc. TeX set up for debian based systems: apt-get install libcairo2-dev pandoc textlive texlive-latex-extra texlive-fonts-extra texlive-xetex
This record will be updated with publication details
*.zip containing: *.RData, *.py, *.txt, *.Rmd
This record's URL: https://www.repository.cam.ac.uk/handle/1810/252508
Attribution 2.0 UK: England & Wales, This work was supported by the Leverhulme Trust Programme Grant [grant number RP2012-C-017].
Licence URL: http://creativecommons.org/licenses/by/2.0/uk/
Recommended or similar items
The following licence files are associated with this item: