Created
February 23, 2021 23:33
-
-
Save martinctc/618ed62babe7b4a40d37e08a4b10f8d3 to your computer and use it in GitHub Desktop.
[Date Expansion using Sundays] #R
This file contains 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
## Date expansion | |
validweeks <- | |
unique(clean_wbq_totalview$Date) %>% | |
purrr::map(function(x){ | |
seq(x, x + 6, by = "days") | |
}) %>% | |
purrr::reduce(c) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment