Skip to content

Commit

Permalink
chore: #2142 roxygen stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
zdz2101 committed Nov 3, 2023
1 parent 00ae97a commit 5c690f7
Show file tree
Hide file tree
Showing 4 changed files with 83 additions and 12 deletions.
30 changes: 25 additions & 5 deletions R/derive_param_exposure.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,33 @@
#' as new records to the input dataset (`dataset`).
#'
#'
#' @param filter Filter condition
#' @param filter
#'
#' The specified condition is applied to the input dataset before deriving the
#' new parameter, i.e., only observations fulfilling the condition are taken
#' into account.
#' `r lifecycle::badge("deprecated")` Please use `filter_add` instead.
#'
#' *Permitted Values:* a condition
#' Filter condition as logical expression to apply during
#' summary calculation. By default, filtering expressions are computed within
#' `by_vars` as this will help when an aggregating, lagging, or ranking
#' function is involved.
#'
#' For example,
#'
#' + `filter = (AVAL > mean(AVAL, na.rm = TRUE))` will filter all `AVAL`
#' values greater than mean of `AVAL` with in `by_vars`.
#' + `filter = (dplyr::n() > 2)` will filter n count of `by_vars` greater
#' than 2.
#'
#' @param filter_add Filter condition as logical expression to apply during
#' summary calculation. By default, filtering expressions are computed within
#' `by_vars` as this will help when an aggregating, lagging, or ranking
#' function is involved.
#'
#' For example,
#'
#' + `filter_add = (AVAL > mean(AVAL, na.rm = TRUE))` will filter all `AVAL`
#' values greater than mean of `AVAL` with in `by_vars`.
#' + `filter_add = (dplyr::n() > 2)` will filter n count of `by_vars` greater
#' than 2.
#'
#' @param input_code Required parameter code
#'
Expand Down
18 changes: 17 additions & 1 deletion R/derive_summary_records.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@
#' records. Providing the names of variables in [exprs()] will create a
#' groupwise summary and generate summary records for the specified groups.
#'
#' @param filter Filter condition as logical expression to apply during
#' @param filter
#'
#' `r lifecycle::badge("deprecated")` Please use `filter_add` instead.
#'
#' Filter condition as logical expression to apply during
#' summary calculation. By default, filtering expressions are computed within
#' `by_vars` as this will help when an aggregating, lagging, or ranking
#' function is involved.
Expand All @@ -41,6 +45,18 @@
#' + `filter = (dplyr::n() > 2)` will filter n count of `by_vars` greater
#' than 2.
#'
#' @param filter_add Filter condition as logical expression to apply during
#' summary calculation. By default, filtering expressions are computed within
#' `by_vars` as this will help when an aggregating, lagging, or ranking
#' function is involved.
#'
#' For example,
#'
#' + `filter_add = (AVAL > mean(AVAL, na.rm = TRUE))` will filter all `AVAL`
#' values greater than mean of `AVAL` with in `by_vars`.
#' + `filter_add = (dplyr::n() > 2)` will filter n count of `by_vars` greater
#' than 2.
#'
#' @param set_values_to Variables to be set
#'
#' The specified variables are set to the specified values for the new
Expand Down
30 changes: 25 additions & 5 deletions man/derive_param_exposure.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 16 additions & 1 deletion man/derive_summary_records.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5c690f7

Please sign in to comment.