Skip to content

Commit 5278255

Browse files
committed
Fix partial var rename, bad links, redocument
* Fix partial rename of variable `as_of_tbl` -> `as_of_df` in `epix_slide` implementation. * Fix some bad links: * Fix transposition of link text and destination * Fix link text containing formatting, which is not allowed * Re-`document()`
1 parent e7ed141 commit 5278255

File tree

6 files changed

+46
-15
lines changed

6 files changed

+46
-15
lines changed

R/grouped_epi_archive.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ grouped_epi_archive =
301301
count =
302302
if (length(comp_effective_key_vars) != 0L) {
303303
comp_effective_key_vals_in_comp_input =
304-
if (is.data.table(.data_group)) {
304+
if (data.table::is.data.table(.data_group)) {
305305
.data_group[, comp_effective_key_vars, with=FALSE]
306306
} else {
307307
.data_group[, comp_effective_key_vars]
@@ -446,7 +446,7 @@ grouped_epi_archive =
446446
# include version column.
447447
# * `group_modify_fn`, the corresponding `.f` argument
448448
if (!all_versions) {
449-
as_of_tbl = as_of_raw
449+
as_of_df = as_of_raw
450450
group_modify_fn = comp_one_grp
451451
} else {
452452
as_of_archive = as_of_raw
@@ -469,7 +469,7 @@ grouped_epi_archive =
469469
ref_time_value,
470470
comp_effective_key_vars,
471471
new_col) {
472-
# .data_group is coming from as_of_tbl as a tibble, but we
472+
# .data_group is coming from as_of_df as a tibble, but we
473473
# want to feed `comp_one_grp` an `epi_archive` backed by a
474474
# DT; convert and wrap:
475475
data.table::setattr(.data_group, "sorted", dt_key)

R/methods-epi_archive.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ epix_detailed_restricted_mutate = function(.data, ...) {
517517
#' [`dplyr::mutate`]-like syntax here to calculate new columns on which to
518518
#' perform grouping, but note that, if you are regrouping an already-grouped
519519
#' `.data` object, the calculations will be carried out ignoring such grouping
520-
#' (same as [in \code{dplyr}][dplyr::group_by]).
520+
#' (same as [in dplyr][dplyr::group_by]).
521521
#' * In `ungroup`: either
522522
#' * empty, in order to remove the grouping and output an `epi_archive`; or
523523
#' * variable name(s) or other ["tidy-select"][dplyr::dplyr_tidy_select]

R/slide.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#' examples.
66
#'
77
#' @param x The `epi_df` object under consideration,
8-
#' [`dplyr::group_by`][grouped] or ungrouped. If ungrouped, all data in `x`
8+
#' [grouped][dplyr::group_by] or ungrouped. If ungrouped, all data in `x`
99
#' will be treated as part of a single data group.
1010
#' @param f Function, formula, or missing; together with `...` specifies the
1111
#' computation to slide. To "slide" means to apply a computation within a

man/epi_slide.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/epix_slide.Rd

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

man/group_by.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.

0 commit comments

Comments
 (0)