diff --git a/R/derive_param_tte.R b/R/derive_param_tte.R index 541c083192..fadfd6a2f8 100644 --- a/R/derive_param_tte.R +++ b/R/derive_param_tte.R @@ -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), @@ -351,7 +351,7 @@ #' SRCSEQ = AESEQ #' ), #' filter = AESER == "Y", -#' order = exprs(AESTDT, AESEQ) +#' order = exprs(AESEQ) #' )), #' censor_conditions = list(censor_source( #' dataset_name = "adsl", @@ -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), @@ -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 diff --git a/man/censor_source.Rd b/man/censor_source.Rd index bc6ea0365a..ff887ff87d 100644 --- a/man/censor_source.Rd +++ b/man/censor_source.Rd @@ -41,9 +41,9 @@ character string, a numeric value, an expression, or \code{NA}.} \item{order}{Sort order An optional named list returned by \code{exprs()} defining additional variables -that the input dataset is sorted on after \code{date}. +that the source dataset is sorted on after \code{date}. -Permitted Values: list of variables created by \code{exprs()} e.g. \code{exprs(ASEQ)}.} +\emph{Permitted Values:} list of variables created by \code{exprs()} e.g. \code{exprs(ASEQ)}.} } \value{ An object of class \code{censor_source}, inheriting from class \code{tte_source} diff --git a/man/derive_param_tte.Rd b/man/derive_param_tte.Rd index c9ad0c7a7b..4821c77f4d 100644 --- a/man/derive_param_tte.Rd +++ b/man/derive_param_tte.Rd @@ -349,7 +349,7 @@ adsl <- tribble( 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), @@ -368,7 +368,7 @@ derive_param_tte( SRCSEQ = AESEQ ), filter = AESER == "Y", - order = exprs(AESTDT, AESEQ) + order = exprs(AESEQ) )), censor_conditions = list(censor_source( dataset_name = "adsl", diff --git a/man/event_source.Rd b/man/event_source.Rd index c17c6c313e..8a721a409e 100644 --- a/man/event_source.Rd +++ b/man/event_source.Rd @@ -35,9 +35,9 @@ character string, a numeric value, an expression, or \code{NA}.} \item{order}{Sort order An optional named list returned by \code{exprs()} defining additional variables -that the input dataset is sorted on after \code{date}. +that the source dataset is sorted on after \code{date}. -Permitted Values: list of variables created by \code{exprs()} e.g. \code{exprs(ASEQ)}.} +\emph{Permitted Values:} list of variables created by \code{exprs()} e.g. \code{exprs(ASEQ)}.} } \value{ An object of class \code{event_source}, inheriting from class \code{tte_source} diff --git a/man/filter_date_sources.Rd b/man/filter_date_sources.Rd index 7736677e69..e5cd516b31 100644 --- a/man/filter_date_sources.Rd +++ b/man/filter_date_sources.Rd @@ -123,7 +123,7 @@ ttae <- event_source( ) ) -filter_date_sources( +admiral:::filter_date_sources( sources = list(ttae), source_datasets = list(adsl = adsl, ae = ae), by_vars = exprs(AEDECOD), diff --git a/man/tte_source.Rd b/man/tte_source.Rd index 17d52d8969..c2c3b56ff7 100644 --- a/man/tte_source.Rd +++ b/man/tte_source.Rd @@ -41,9 +41,9 @@ character string, a numeric value, an expression, or \code{NA}.} \item{order}{Sort order An optional named list returned by \code{exprs()} defining additional variables -that the input dataset is sorted on after \code{date}. +that the source dataset is sorted on after \code{date}. -Permitted Values: list of variables created by \code{exprs()} e.g. \code{exprs(ASEQ)}.} +\emph{Permitted Values:} list of variables created by \code{exprs()} e.g. \code{exprs(ASEQ)}.} } \value{ An object of class \code{tte_source} diff --git a/tests/testthat/test-derive_param_tte.R b/tests/testthat/test-derive_param_tte.R index 03547ad754..557b6f7bd0 100644 --- a/tests/testthat/test-derive_param_tte.R +++ b/tests/testthat/test-derive_param_tte.R @@ -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",