-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpaper.Rmd
More file actions
41 lines (26 loc) · 1.08 KB
/
paper.Rmd
File metadata and controls
41 lines (26 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
---
title: "Tweets from five beer companies"
author: "Lisha Wang"
date: "November 03, 2017"
output: html_document
---
## Background
We grabed tweets from five beer companies' official accounts and did text-mining analysis. The five companies are Bud lite, Dos Equis, Guinness, Blue Moon, and Tsingtao. I focused on text data about Tsingtao, and the question for me was "What are the common words among tweets which have highest retweets in each month".
## The Data
We got the data by using the package twitteR. I defined the username as
```
@Tsingtao
```
Our function also allows us to enter in information on dates and number of tweets.
## The Graph
Below is the popular words among tweets with highest retweets in each month:

## Basic Information
The table below display the number of month each company has the highst retweets
```{r, echo=FALSE}
library(dplyr)
load("data/retweets.Rda")
table<-as.data.frame(table(retweets$screenName))
names(table) <-c("Brand", "Count")
knitr::kable(table)
```