File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -599,8 +599,7 @@ epi_archive =
599599 }
600600
601601 # If a custom time step is specified, then redefine units
602- before_num = before
603- if (! missing(time_step )) before_num = time_step(before )
602+ if (! missing(time_step )) before <- time_step(before )
604603
605604 # What to group by? If missing, set according to internal keys;
606605 # otherwise, tidyselect.
@@ -675,7 +674,7 @@ epi_archive =
675674
676675 x = purrr :: map_dfr(ref_time_values , function (ref_time_value ) {
677676 self $ as_of(ref_time_value ,
678- min_time_value = ref_time_value - before_num ) %> %
677+ min_time_value = ref_time_value - before ) %> %
679678 dplyr :: group_by(!!! group_by ) %> %
680679 dplyr :: group_modify(comp_one_grp ,
681680 f = f , ... ,
@@ -703,7 +702,7 @@ epi_archive =
703702
704703 x = purrr :: map_dfr(ref_time_values , function (ref_time_value ) {
705704 self $ as_of(ref_time_value ,
706- min_time_value = ref_time_value - before_num ) %> %
705+ min_time_value = ref_time_value - before ) %> %
707706 dplyr :: group_by(!!! group_by ) %> %
708707 dplyr :: group_modify(comp_one_grp ,
709708 f = f , quo = quo ,
You can’t perform that action at this time.
0 commit comments