Giter Site home page Giter Site logo

sondreus / nationalism_cmp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sdbock/nationalism_cmp

0.0 0.0 0.0 2.5 MB

Examining the prevalence of nationalism in party manifestos over time using the Comparative Manifesto Project data.

R 0.06% HTML 99.94%

nationalism_cmp's Introduction

nationalism_CMP

Examining the prevalence of nationalism in party manifestos over time using the Comparative Manifesto Project data.

The final report can be viewed here.

Included files for replication

For replication, I suggest utilizing the Rproject workflow to keep file structure intact.

report.RMD

This is an Rmarkdown file that generates the final report. Each of the included scripts (i.e., to load and clean data, generate figures, etc.) are called within the document, such that compiling the document runs all required scripts (in the correct order). Note that compilation will fail without a Comparative Manifesto Project (CMP) API key placed within the project folder.

get_data.R

Loads required packages and queries the CMP API for full dataset (via the manifestoR package). Requires API key stored in project folder. Generates "cmp.csv".

cleaning_data.R

Cleans and reshapes data for plotting.

plot_interactive.R

Generates an interactive scatterplot of prevalance of statements across 4 nationalism measures.

table_top50.r

Creates a gt table of the top-50 parties, sorted by a composite measure of nationalistic statments in manifestos.

nationalism_cmp's People

Contributors

sdbock avatar sondreus avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.