{"id":16516641,"url":"https://github.com/adamspannbauer/tidytext_learning","last_synced_at":"2026-05-09T21:37:07.014Z","repository":{"id":83432246,"uuid":"78952766","full_name":"AdamSpannbauer/tidytext_learning","owner":"AdamSpannbauer","description":"playing with tidytext, fivethirtyeight data, \u0026 ggplot2 at Rstudio::Conf","archived":false,"fork":false,"pushed_at":"2017-01-14T21:30:32.000Z","size":2120,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-13T05:28:17.187Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AdamSpannbauer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-01-14T16:47:09.000Z","updated_at":"2017-04-27T15:17:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"b22f52e6-8253-4dc3-af97-9806d66b158c","html_url":"https://github.com/AdamSpannbauer/tidytext_learning","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdamSpannbauer%2Ftidytext_learning","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdamSpannbauer%2Ftidytext_learning/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdamSpannbauer%2Ftidytext_learning/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdamSpannbauer%2Ftidytext_learning/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AdamSpannbauer","download_url":"https://codeload.github.com/AdamSpannbauer/tidytext_learning/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241549116,"owners_count":19980476,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T16:25:54.440Z","updated_at":"2026-05-09T21:37:06.984Z","avatar_url":"https://github.com/AdamSpannbauer.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tidy trump\n### Trump Doesn't Like Mondays\n\nPlaying with fivethirtyeight trump tweet data to learn more about tidytext capabilities (and just to have some fun)\n\n### findings\n * Not unlike Garfield, Trump doesn't seem to like Mondays.  The sentiment of Trump's tweets on Mondays appears to be the most negative\n * trump had a good October in 2015.  Not only did he tweet the most in 10/2015 but he also had the most positive sentiment in the month. (plan to look more into cause of positivity)\n\n### data\n    data(trump_twitter, package = \"fivethirtyeight\")\n\n### libraries used\n    library(tidytext)\n    library(SnowballC)\n    library(tidyverse)\n    library(stringr)\n    library(fivethirtyeight)\n    library(lubridate)\n    library(gridExtra)\n\n### most positive/negative tweets\n#### top 3 positive\n * Wow, every poll said I won the debate last night. Great honor!\n\n * Just found out I won the Rockingham County Republican Booth Straw Poll at the Deerfield Fair in New Hampshire this past weekend. 39% ---Wow!\n\n * .@JebBush has spent  $63,000,000 and is at the bottom of the polls. I have spent almost nothing and am at the top. WIN!  @hughhewitt \n\n#### top 3 negative\n  * Marco Rubio is a member of the Gang Of Eight or, very weak on stopping illegal immigration. Only changed when poll numbers crashed.\n\n  * Why would anyone in Kentucky listen to failed presidential candidate Rand Paul re: caucus. Made a fool of himself (1%.) KY his 2nd choice!\n\n  * Yet another weak hit by a candidate with a failing campaign. Will Jeb sink as low in the polls as the others who have gone after me?\n\n### ggplot2 results \n##### (score represents sentiment using `tidytext::get_sentiments(\"afinn\")`)\n#### What day of week does trump tweet the most?  Is sentiment more positive on certain days?\n![Sentiment by day](plots/sentByDay.png)\n\n#### What month does trump tweet the most?  Is sentiment more positive in certain months?\n![Sentiment over time full](plots/sentByMonth.png)\n\n#### What time of day does trump tweet the most?  Is sentiment more positive at certain times?\n![Sentiment by hour](plots/sentByHour.png)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadamspannbauer%2Ftidytext_learning","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadamspannbauer%2Ftidytext_learning","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadamspannbauer%2Ftidytext_learning/lists"}