Skip to content

Commit

Permalink
add equal sign
Browse files Browse the repository at this point in the history
  • Loading branch information
Rosemary Li committed Feb 19, 2024
1 parent 81d5804 commit ae903e9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions R/calculate_study_day.R
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@
#' calculate_study_day(ae, dm, "RFSTDTC", "AESTDTC", "AESTDY")
#'
calculate_study_day <- function(sdtm_in,
dm_domain,
refdt = "RFSTDTC",
tgdt,
study_day_var,
dm_domain = "DM",
Expand Down Expand Up @@ -126,7 +124,7 @@ calculate_study_day <- function(sdtm_in,
tgt <- sdtm_in[[tgdt]]

# SDTMIG 4.4.4 Use of the Study Day Variables
res <- ifelse(tgt > ref, tgt - ref + 1L, tgt - ref)
res <- ifelse(tgt >= ref, tgt - ref + 1L, tgt - ref)

sdtm_in <- sdtm_in[original_variables]
sdtm_in[study_day_var] <- res
Expand Down

0 comments on commit ae903e9

Please sign in to comment.