-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path4d-reddit-analysis.Rmd
61 lines (51 loc) · 1.17 KB
/
4d-reddit-analysis.Rmd
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
---
title: "Analyzing Reddit Data"
subtitle: "Analytics Sandbox"
author: "K. Bret Staudt Willet | Florida State University"
date: "February 14, 2023"
---
```{r setup, message=FALSE}
knitr::opts_chunk$set(echo = TRUE)
library(tidyverse)
library(anytime)
library(lubridate)
library(RColorBrewer)
library(viridis)
```
## Read In Posts and Comments
```{r, message=FALSE}
posts <-
read_csv("./data/reddit-analytics-posts-filtered.csv")
comments <-
read_csv("./data/reddit-analytics-comments-filtered.csv")
```
## Comments on Posts
```{r, message=FALSE}
posts %>%
summarize(mean = mean(num_comments),
sd = sd(num_comments),
median = median(num_comments),
min = min(num_comments),
max = max(num_comments)
)
```
## Posts Voting
```{r, message=FALSE}
posts %>%
summarize(mean = mean(score),
sd = sd(score),
median = median(score),
min = min(score),
max = max(score)
)
```
## Comments Voting
```{r, message=FALSE}
comments %>%
summarize(mean = mean(score),
sd = sd(score),
median = median(score),
min = min(score),
max = max(score)
)
```