Skip to content

Commit

Permalink
updates to derive_param_tte documentation and test examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
ProfessorP-beep committed Dec 23, 2024
1 parent 404c949 commit ae70492
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 15 deletions.
10 changes: 5 additions & 5 deletions R/derive_param_tte.R
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@
#' ae <- tribble(
#' ~USUBJID, ~AESTDTC, ~AESEQ, ~AESER, ~AEDECOD,
#' "01", "2021-01-03", 1, "Y", "Flu",
#' "01", "2021-01-03", 2, "Y", "cough",
#' "01", "2021-01-03", 2, "Y", "Cough",
#' "01", "2021-01-20", 3, "N", "Headache",
#' ) %>% mutate(
#' AESTDT = ymd(AESTDTC),
Expand All @@ -351,7 +351,7 @@
#' SRCSEQ = AESEQ
#' ),
#' filter = AESER == "Y",
#' order = exprs(AESTDT, AESEQ)
#' order = exprs(AESEQ)
#' )),
#' censor_conditions = list(censor_source(
#' dataset_name = "adsl",
Expand Down Expand Up @@ -636,7 +636,7 @@ derive_param_tte <- function(dataset = NULL,
#' )
#' )
#'
#' filter_date_sources(
#' admiral:::filter_date_sources(
#' sources = list(ttae),
#' source_datasets = list(adsl = adsl, ae = ae),
#' by_vars = exprs(AEDECOD),
Expand Down Expand Up @@ -890,9 +890,9 @@ extend_source_datasets <- function(source_datasets,
#' @param order Sort order
#'
#' An optional named list returned by `exprs()` defining additional variables
#' that the input dataset is sorted on after `date`.
#' that the source dataset is sorted on after `date`.
#'
#' Permitted Values: list of variables created by `exprs()` e.g. `exprs(ASEQ)`.
#' *Permitted Values:* list of variables created by `exprs()` e.g. `exprs(ASEQ)`.
#'
#' @keywords source_specifications
#' @family source_specifications
Expand Down
4 changes: 2 additions & 2 deletions man/censor_source.Rd

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

4 changes: 2 additions & 2 deletions man/derive_param_tte.Rd

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

4 changes: 2 additions & 2 deletions man/event_source.Rd

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

2 changes: 1 addition & 1 deletion man/filter_date_sources.Rd

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

4 changes: 2 additions & 2 deletions man/tte_source.Rd

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

2 changes: 1 addition & 1 deletion tests/testthat/test-derive_param_tte.R
Original file line number Diff line number Diff line change
Expand Up @@ -1025,7 +1025,7 @@ input is sorted descending", {
SRCSEQ = AESEQ
),
filter = AESER == "Y",
order = exprs(AESTDT, AESEQ) # Should re-sort so that AESEQ=1 (Flu) is chosen on tie
order = exprs(AESEQ) # Should re-sort so that AESEQ=1 (Flu) is chosen on tie
)),
censor_conditions = list(censor_source(
dataset_name = "adsl",
Expand Down

0 comments on commit ae70492

Please sign in to comment.