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
| # need to do this within the repo at | |
| # https://github.com/gadenbuie/covid19-florida | |
| library(dplyr, warn.conflicts = FALSE) | |
| library(tidyr, warn.conflicts = FALSE) | |
| library(readr, warn.conflicts = FALSE) | |
| library(lubridate, warn.conflicts = FALSE) | |
| library(ggplot2, warn.conflicts = FALSE) | |
| library(purrr, warn.conflicts = FALSE) | |
| library(ggiraph, warn.conflicts = FALSE) |
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
| # this solves the data wrangling problem described at: | |
| # https://twitter.com/AbbyCScience/status/1205549666567368705?s=20 | |
| library(tidyverse) | |
| library(lubridate) | |
| dat <- tibble( | |
| ID = 1:4, | |
| event_1 = c(mdy("1/1/17"), mdy("2/14/18"), mdy("10/30/17"), mdy("6/10/18")), | |
| event_2 = c(mdy("1/1/17"), mdy("2/14/18"), NA, NA), |