Giter Site home page Giter Site logo

rj-maps's Introduction

rj-maps

Collecting, cleaning and structuring data for 6 legislative elections in the state of Rio de Janeiro

Objective: create automated, functional R scripts to collect, clean and structure data for legislative elections per party in the state of Rio de Janeiro. Positions: Chamber of Deputies, Senate and State Assembly; electoral years: 1998,2002,2006,2010,2014,2018.

In this repository you will find the following R scripts:

coleta_dados.R: collects electoral data using the package electionsBR, structures datasets as panels, calculates the percentage of voting per municipality and saves datasets as csv files.

funcoes.R: functions created to automate the transformation of the datasets in order to plot maps (transform panel to spread dataset, merge shapefile to spread dataset, etc). This script should be called as source in the mapas.R script

mapas.R: In progress! Merge shapefiles to datasets and plots the final maps. The script funcoes.R should be called as source to appropriately run the functions.

Scripts documented in Portuguese.

rj-maps's People

Contributors

nataliablock avatar

Watchers

James Cloos avatar  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.