Created
June 23, 2022 04:54
-
-
Save sergiospagnuolo/b0af8b5f486e47bbf4cf966564ecef7b to your computer and use it in GitHub Desktop.
Análise Getter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(tidyverse) | |
library(lubridate) | |
library(clipr) | |
ptbr <- read.csv("dados_pt.csv", header = T) | |
ptbr$lang <- "português" | |
eng <- read.csv("dados_eng.csv", header = T) | |
eng$lang <- "inglês" | |
hist <- read.csv("historico_completo.csv", header = T) | |
g <- bind_rows(ptbr,eng) | |
g$creation_date <- as.Date(g$creation_date) | |
g$semana <- cut(g$creation_date, "week", start.on.monday = TRUE) | |
semanal <- g %>% | |
group_by(lang,semana) %>% | |
summarise(sum(Contagem)) %>% | |
arrange(semana) %>% | |
head(-2) | |
write_clip(d) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment