Skip to content

Commit

Permalink
offsetDays hotfix issue #90
Browse files Browse the repository at this point in the history
  • Loading branch information
mdlavallee92 committed Feb 2, 2024
1 parent 8aa3a0d commit a7b3f02
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions R/exit.R
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ drugExit <- function(conceptSet,

#' Function to create an exit based on exit based on the end of a continuous drug exposure
#' @param index specification of event date to offset. Can be either startDate or endDate
#' @param offsetDays an integer specifying the number of days to offset from the event date
#' @param offsetDays an number specifying the days to offset from the event date. Will coerce to an integer
#' @return a fixed Duration exit S4 object used to define the cohort exit as the end of a specified time
#' @export
fixedExit <- function(index = c("startDate", "endDate"), offsetDays){
Expand All @@ -150,7 +150,7 @@ fixedExit <- function(index = c("startDate", "endDate"), offsetDays){

ee <- methods::new("FixedDurationExit",
index = index,
offsetDays = offsetDays)
offsetDays = as.integer(offsetDays))
return(ee)
}

Expand Down
2 changes: 1 addition & 1 deletion man/fixedExit.Rd

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

0 comments on commit a7b3f02

Please sign in to comment.