Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
UMR-ASTRE
Covid19-Mortality-Visualisation
Commits
31a7444f
Commit
31a7444f
authored
Dec 08, 2020
by
esthervankleef
Browse files
Change date_range for stringency function to using last_day
parent
45ddd4da
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plan.R
View file @
31a7444f
...
...
@@ -55,10 +55,13 @@ plan <- drake_plan(## raw_data = read_excel(
## ),
## ECDC Covid19 geographic distribution data
#
last_day = Sys.Date() - 1,
last_day
=
as.Date
(
"2020-07-22"
),
last_day
=
Sys.Date
()
-
1
,
#
last_day = as.Date("2020-07-22"),
## string for today
sdt
=
format
(
last_day
,
"%d %b %Y"
),
## date range for lockdown
date_range_lock
=
paste0
(
"2020-01-01/"
,
last_day
),
covid
=
ecdc_covid19
(
last_day
)
%>%
# rm some negative records that are obvious errors
...
...
@@ -83,7 +86,7 @@ plan <- drake_plan(## raw_data = read_excel(
## This tool aims to track and compare
## policy responses around the world, rigorously and consistently.
lock
=
stringency
(),
lock
=
stringency
(
date_range_lock
),
## CARTOGRAPHY ---------------------------------------------------
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment