Skip to content

Commit

Permalink
bugfix in carrying forward DOSCUMA
Browse files Browse the repository at this point in the history
  • Loading branch information
philipdelff committed Sep 7, 2022
1 parent 0f6feaa commit d58fa7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/addTAPD.R
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ addTAPD <- function(data,col.time="TIME",col.evid="EVID",col.amt="AMT",col.tpdos
## Cumulative Amount of Dose Received
if(!is.null(col.doscuma)){
data[!is.na(get(col.amt)),(col.doscuma):=cumsum(get(col.amt)),by=by]
data[,(col.doscuma):=nafill(get(col.doscuma)),by=by]
data[,(col.doscuma):=nafill(get(col.doscuma),type="locf"),by=by]
}
## clean up tpdos
if(is.null(col.tpdos)){
Expand Down

0 comments on commit d58fa7b

Please sign in to comment.