Skip to content

Commit ca37636

Browse files
authored
Merge branch 'main' into km-compactify_rectify
2 parents 8bb37c4 + 43a90d4 commit ca37636

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

R/methods-epi_archive.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ epix_merge = function(x, y,
361361
#' @param n Number of time steps to use in the running window. For example, if
362362
#' `n = 7`, and one time step is one day, then to produce a value on January 7
363363
#' we apply the given function or formula to data in between January 1 and
364-
#' 7. Default is 7.
364+
#' 7.
365365
#' @param group_by The variable(s) to group by before slide computation. If
366366
#' missing, then the keys in the underlying data table, excluding `time_value`
367367
#' and `version`, will be used for grouping. To omit a grouping entirely, use
@@ -448,7 +448,7 @@ epix_merge = function(x, y,
448448
#' group_by = geo_value,
449449
#' ref_time_values = time_values,
450450
#' new_col_name = 'case_rate_3d_av')
451-
epix_slide = function(x, f, ..., n = 7, group_by, ref_time_values,
451+
epix_slide = function(x, f, ..., n, group_by, ref_time_values,
452452
time_step, new_col_name = "slide_value",
453453
as_list_col = FALSE, names_sep = "_", all_rows = FALSE) {
454454
if (!inherits(x, "epi_archive")) Abort("`x` must be of class `epi_archive`.")

R/slide.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#' @param n Number of time steps to use in the running window. For example, if
2323
#' `n = 7`, one time step is one day, and the alignment is "right", then to
2424
#' produce a value on January 7 we apply the given function or formula to data
25-
#' in between January 1 and 7. Default is 7.
25+
#' in between January 1 and 7.
2626
#' @param ref_time_values Time values for sliding computations, meaning, each
2727
#' element of this vector serves as the reference time point for one sliding
2828
#' window. If missing, then this will be set to all unique time values in the
@@ -114,7 +114,7 @@
114114
#' epi_slide(a = data.frame(cases_2dav = mean(cases),
115115
#' cases_2dma = mad(cases)),
116116
#' n = 2, as_list_col = TRUE)
117-
epi_slide = function(x, f, ..., n = 7, ref_time_values,
117+
epi_slide = function(x, f, ..., n, ref_time_values,
118118
align = c("right", "center", "left"), before, time_step,
119119
new_col_name = "slide_value", as_list_col = FALSE,
120120
names_sep = "_", all_rows = FALSE) {

man/epi_archive.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/epi_slide.Rd

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/epix_slide.Rd

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)