##Introduction

Here is the link to the article, https://fivethirtyeight.com/features/aging-congress-boomers/. Politicians in congress are older than ever compared to previous years.The median age is a record high and they are increasingly becoming out of touch with technology. As a result, they’re not focused on improving the lives of the youth and providing a better future for them, they’re more likely to focus on issues involving seniors.

You need tidyverse

library(tidyverse)

The data from the GitHub repo of 538

x <- read.csv(url("https://raw.githubusercontent.com/fivethirtyeight/data/master/congress-demographics/data_aging_congress.csv"))
congress <- as.data.frame(x)
glimpse(congress)
## Rows: 29,120
## Columns: 13
## $ congress      <int> 82, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, …
## $ start_date    <chr> "1951-01-03", "1947-01-03", "1949-01-03", "1951-01-03", …
## $ chamber       <chr> "House", "House", "House", "House", "House", "House", "H…
## $ state_abbrev  <chr> "ND", "VA", "VA", "VA", "VA", "VA", "VA", "VA", "VA", "V…
## $ party_code    <int> 200, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 1…
## $ bioname       <chr> "AANDAHL, Fred George", "ABBITT, Watkins Moorman", "ABBI…
## $ bioguide_id   <chr> "A000001", "A000002", "A000002", "A000002", "A000002", "…
## $ birthday      <chr> "1897-04-09", "1908-05-21", "1908-05-21", "1908-05-21", …
## $ cmltv_cong    <int> 1, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 1, 2, 3, 4…
## $ cmltv_chamber <int> 1, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 1, 2, 3, 4…
## $ age_days      <int> 19626, 14106, 14837, 15567, 16298, 17028, 17759, 18489, …
## $ age_years     <dbl> 53.73306, 38.62012, 40.62149, 42.62012, 44.62149, 46.620…
## $ generation    <chr> "Lost", "Greatest", "Greatest", "Greatest", "Greatest", …

The lost, greatest, and silent generation have very old people in congress at the top of their age bracket.

ggplot(data = congress, aes(x = generation, y = age_years)) + geom_point()

##Conclusion The data contains a lot of duplicates, if it were to be pruned of duplicates, it would be easier to read and draw conclusions from. It’s overly massive due to duplicates, but without a doubt there is the truth that congress is aging.If provided with a more concise data set without duplicates, more results could be verified.