Learn R Programming

fivethirtyeight (version 0.5.0)

nfl_fandom_google: How Every NFL Team<U+2019>s Fans Lean Politically

Description

The raw data behind the story "How Every NFL Team<U+2019>s Fans Lean Politically" https://fivethirtyeight.com/features/how-every-nfl-teams-fans-lean-politically: Google Trends Data.

Usage

nfl_fandom_google

Arguments

Format

a data frame with 207 rows representing designated market areas and 9 variables:

dma

Designated Market Area

nfl

The percentage of search traffic in the media market region related to the NFL over the past 5 years

nba

The percentage of search traffic in the region related to the NBA over the past 5 years

mlb

The percentage of search traffic in the region related to the MLB over the past 5 years

nascar

The percentage of search traffic in the region related to NASCAR over the past 5 years

cbb

The percentage of search traffic in the region related to the CBB over the past 5 years

cfb

The percentage of search traffic in the region related to the CFB over the past 5 years

trump_2016_vote

The percentage of voters in the region who voted for Trump in the 2016 Presidential Election

See Also

nfl_fandom_surveymonkey

Examples

Run this code
# NOT RUN {
# To convert data frame to tidy data (long) format, run:
library(dplyr)
library(tidyr)
nfl_fandom_google_tidy <- nfl_fandom_google %>%
  gather(sport, search_traffic, -c("dma", "trump_2016_vote")) %>%
  arrange(dma)
# }

Run the code above in your browser using DataLab