asebastianc / twitter_iess_analysis

Twitter IESS Analysis

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Twitter IESS Analysis

This repository includes all the files and scripts to reproduce the analysis of tweets on the Ecuadorian Social Security Institute (IESS).

Requisites

  • R and RStudio are required for reproducing the analysis. Further documentation here.
  • Apart from installing the necessary packages listed in twitter_analysis.R, Java must be installed and configured within RStudio. For this, first download and install Java from this link. Then open Windows' cmd and 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.

Reproducing the analysis

Step 1

Check that the following files are in the data folder:

  • provincias.dbf
  • provincias.shp
  • provincias.shx
  • tweets_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.

Step 2

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.

Reports

This repository has two reports, both within the report folder.

  • Report 1: The first report is the report.pdf file. To replicate it: download and unzip report.zip, then compile it using LaTex.
  • 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_spanish folder, as a file called report.Rmd. The respective .html compilation, bibliography and references styling files are also accessible. This report focuses on a mass audience.

About

Twitter IESS Analysis

License:GNU General Public License v3.0


Languages

Language:R 100.0%