Description Usage Format Source See Also Examples
The raw data behind the story "How Every NFL Team’s Fans Lean Politically" https://fivethirtyeight.com/features/how-every-nfl-teams-fans-lean-politically/: SurveyMonkey Data.
1 |
a data frame with 33 rows representing teams and 25 variables:
NFL team
Total number of poll respondents who ranked the given team in their top 3 favorites
Number of Asian, democrat poll respondents who ranked the given team in their top 3 favorites
Number of Black, democrat poll respondents who ranked the given team in their top 3 favorites
Number of Hispanic, democrat poll respondents who ranked the given team in their top 3 favorites
Number of democrat poll respondents who identified their race as "other" (not Asian, Black, Hispanic, or White) and ranked the given team in their top 3 favorites
Number of White, democrat poll respondents who ranked the given team in their top 3 favorites
Total number of democrat poll respondents who ranked the given team in their top 3 favorites
Number of Asian, independent poll respondents who ranked the given team in their top 3 favorites
Number of Black, independent poll respondents who ranked the given team in their top 3 favorites
Number of Hispanic, independent poll respondents who ranked the given team in their top 3 favorites
Number of independent poll respondents who identified their race as "other" (not Asian, Black, Hispanic, or White) and ranked the given team in their top 3 favorites
Number of White, independent poll respondents who ranked the given team in their top 3 favorites
Total number of independent poll respondents who ranked the given team in their top 3 favorites
Number of Asian, republican poll respondents who ranked the given team in their top 3 favorites
Number of Black, republican poll respondents who ranked the given team in their top 3 favorites
Number of Hispanic, republican poll respondents who ranked the given team in their top 3 favorites
Number of republican poll respondents who identified their race as "other" (not Asian, Black, Hispanic, or White) and ranked the given team in their top 3 favorites
Number of White, republican poll respondents who ranked the given team in their top 3 favorites
Total number of republican poll respondents who ranked the given team in their top 3 favorites
Percent of fans (who ranked the team in their top 3 favorite NFL teams) who are republicans
Percent of fans who are democrats
Percent of fans who are independent
Percent of fans who are White
Percent of fans who are not White
See https://github.com/fivethirtyeight/data/blob/master/nfl-fandom/NFL_fandom_data-surveymonkey.csv
1 2 3 4 5 6 7 8 | # To convert data frame to tidy data (long) format, run:
library(dplyr)
library(tidyr)
nfl_fandom_surveymonkey_tidy <- nfl_fandom_surveymonkey %>%
pivot_longer(-c("team", "total_respondents", "gop_percent", "dem_percent",
"ind_percent", "white_percent", "nonwhite_percent"),
names_to = "race_party", values_to = "percent") %>%
arrange(team)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.