Skip to content

Commit

Permalink
study day changed to integer
Browse files Browse the repository at this point in the history
  • Loading branch information
Rosemary Li committed Mar 4, 2024
1 parent 4379011 commit e6d8758
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/derive_study_day.R
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,6 @@ derive_study_day <- function(sdtm_in,
res <- ifelse(tgt >= ref, tgt - ref + 1L, tgt - ref)

sdtm_in <- sdtm_in[original_variables]
sdtm_in[study_day_var] <- res
sdtm_in[study_day_var] <- as.integer(res)
return(sdtm_in)
}

0 comments on commit e6d8758

Please sign in to comment.