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(glue) | |
# Scrapping dos dados da Fiocruz (InfoGripe), anos de interesse | |
range <- c(2009,2016,2019,2020) | |
url <- "http://info.gripe.fiocruz.br/data/detailed/1/2/{year}/52/Brasil/weekly-incidence-curve" | |
# para cada ano, faz a requisição das notificações em formato CSV e importa | |
scrap <- range %>% | |
map(function(.x,.url){ |
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(glue) | |
# Scrapping dos dados da Fiocruz (InfoGripe) | |
range <- 2015:2020 | |
url <- "http://info.gripe.fiocruz.br/data/detailed/1/2/{year}/52/Brasil/weekly-incidence-curve" | |
# para cada ano, faz a requisição das notificações | |
scrap <- range %>% | |
map(function(.x,.url){ |
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(glue) | |
library(lubridate) | |
post_tweet <- print | |
tribble( | |
~local, ~data_str, ~mensagem, | |
"PUC-Rio", "17/12/2019", "VAMO LÁ PORRA, JÁ TA ACABANDO!!!", | |
"UFRJ", "14/12/2019", "VAMO LÁ PORRA, DIAS MELHORES VIRÃO!!!", |