Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.
/ dataland Public archive

This repository contains code for a poll Trecker for Dataland.

Notifications You must be signed in to change notification settings

sina-chen/dataland

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

Dataland

This repository contains code and results related to the scraping and cleaning of polling data for the 2024 election in Dataland. It also includes code for calculating trends for each candidate based on a 7-day average of polling results. To run the code, the "tidyverse", "rvest", and "zoo" package are required. The code was implemented with R version 4.2.2.

Description of files

  • The code folder contains all code

    • The dataland_polls_trends.R apllies all functions to scrap, clean, and write/update polling data and generate/update polling trends.
    • The dataland_helper_functions.R contains all functions for scraping, cleaning, updating, and generating polling and trend data.
  • The data folder contains the generated data as well as previous versions of the data (indicated by "_old"), when the data is updataed.

  • The plots folder contains a plot visulising the scraped data and estimated trends to ensure that trends stay reasonable close the the polls.

About

This repository contains code for a poll Trecker for Dataland.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published