knitr::opts_chunk$set(echo = TRUE)
library(tidyverse)
library(anytime)
library(lubridate)
library(RColorBrewer)
library(viridis)
posts <-
read_csv("./data/reddit-analytics-posts-filtered.csv")
comments <-
read_csv("./data/reddit-analytics-comments-filtered.csv")
posts %>%
summarize(mean = mean(score),
sd = sd(score),
median = median(score),
min = min(score),
max = max(score)
)
## # A tibble: 1 × 5
## mean sd median min max
## <dbl> <dbl> <dbl> <dbl> <dbl>
## 1 8.19 12.9 3 0 68
comments %>%
summarize(mean = mean(score),
sd = sd(score),
median = median(score),
min = min(score),
max = max(score)
)
## # A tibble: 1 × 5
## mean sd median min max
## <dbl> <dbl> <dbl> <dbl> <dbl>
## 1 3.72 7.21 2 -8 83
Comments on Posts