Skip to content

Instantly share code, notes, and snippets.

@martinctc
Created February 23, 2021 23:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save martinctc/618ed62babe7b4a40d37e08a4b10f8d3 to your computer and use it in GitHub Desktop.
Save martinctc/618ed62babe7b4a40d37e08a4b10f8d3 to your computer and use it in GitHub Desktop.
[Date Expansion using Sundays] #R
## 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