Skip to content

Commit

Permalink
Add examples to function
Browse files Browse the repository at this point in the history
  • Loading branch information
ShiyuC committed Sep 11, 2024
1 parent 42dd3c5 commit 64312d9
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
22 changes: 22 additions & 0 deletions R/derive_blfl.R
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ dtc_timepart <- function(dtc, partial_as_na = TRUE, ignore_seconds = TRUE) {
#'
#' sdtm_in
#'
#' # Example 1:
#' observed_output <- derive_blfl(
#' sdtm_in = sdtm_in,
#' dm_domain = dm,
Expand All @@ -269,6 +270,27 @@ dtc_timepart <- function(dtc, partial_as_na = TRUE, ignore_seconds = TRUE) {
#' )
#' observed_output
#'
#' # Example 2:
#' observed_output2 <- derive_blfl(
#' sdtm_in = sdtm_in,
#' dm_domain = dm,
#' tgt_var = "VSLOBXFL",
#' ref_var = "RFXSTDTC",
#' baseline_timepoints = c("PRE-DOSE")
#' )
#' observed_output2
#'
#' # Example 3: Output is the same as Example 2
#' observed_output3 <- derive_blfl(
#' sdtm_in = sdtm_in,
#' dm_domain = dm,
#' tgt_var = "VSLOBXFL",
#' ref_var = "RFXSTDTC",
#' baseline_visits = c("SCREENING"),
#' baseline_timepoints = c("PRE-DOSE")
#' )
#' observed_output3
#'
derive_blfl <- function(sdtm_in,
dm_domain,
tgt_var,
Expand Down
22 changes: 22 additions & 0 deletions man/derive_blfl.Rd

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

0 comments on commit 64312d9

Please sign in to comment.