This repository includes all the files and scripts to reproduce the analysis of tweets on the Ecuadorian Social Security Institute (IESS).
RandRStudioare required for reproducing the analysis. Further documentation here.- Apart from installing the necessary packages listed in
twitter_analysis.R,Javamust be installed and configured withinRStudio. For this, first download and install Java from this link. Then open Windows'cmdand excecute the following code line:
setx PATH "C:\Program Files\Java\jre1.8.0_211\bin\server;%PATH%"
Finally set Java environment running the following command inside the RStudio's console:
Sys.setenv(JAVA_HOME = "")For more details on this process, please visit StackOverflow.
Check that the following files are in the data folder:
provincias.dbfprovincias.shpprovincias.shxtweets_iess_list.RData
provincias.dbf, provincias.shp and provincias.shx are used to plot map.png.
tweets_iess_list.RData is the source dataset for performing the analysis.
To reproduce the analysis, run twitter_analysis.R from code folder.
- The analysis will be automatically reproduced.
- Three images will be created/overwrited inside
images.
This repository has two reports, both within the report folder.
- Report 1: The first report is the
report.pdffile. To replicate it: download and unzipreport.zip, then compile it usingLaTex. - Report 2: This analysis was created for publication in El Quantificador. For this purpose, a short spanish version of the report is available at the
report_spanishfolder, as a file calledreport.Rmd. The respective.htmlcompilation, bibliography and references styling files are also accessible. This report focuses on a mass audience.