Learn R Programming

fivethirtyeight (version 0.5.0)

mayweather_mcgregor_tweets: Mayweather Vs McGregor Tweets

Description

The raw data behind the story "The Mayweather-McGregor Fight As Told Through Emojis" https://fivethirtyeight.com/?post_type=fte_features&p=161615.

Usage

mayweather_mcgregor_tweets

Arguments

Format

Because of R package size restrictions, only a preview of the first 10 rows of this dataset is included; to obtain the entire dataset (12118 rows) see Examples below. A data frame with 10 rows representing tweets and 7 variables:

created_at

Time and date at which the tweet associated with the Mayweather vs. McGregor fight was sent.

emojis

Whether or not emojis were used in the tweet about the fight.

id

A numerical identifier for each individual tweet about the fight.

link

The link to the tweet about the fight on Twitter.

retweeted

Whether or not the tweet about the fight was retweeted.

screen_name

The screen name under which the tweet about the fight was posted.

text

The text contained in the tweet about the fight.

Examples

Run this code
# NOT RUN {
# To obtain the entire dataset, run the following code:
library(dplyr)
library(readr)

mayweather_mcgregor_tweets <-
  "https://raw.githubusercontent.com/fivethirtyeight/data/master/mayweather-mcgregor/tweets.csv" %>%
  read_csv() %>%
  mutate(
    emojis = as.logical(emojis),
    retweeted = as.logical(retweeted),
    id = as.character(id)
  )
# }

Run the code above in your browser using DataLab