Skip to content

Commit 3570fa1

Browse files
committed
minor
1 parent 33796fc commit 3570fa1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

R/Trial.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -843,7 +843,7 @@ trial_simulate <- function(self, n, .niter, ...) {
843843
}
844844
xt <- lapply(xt, data.table)
845845
if (count == 0) nsim <- n * length(xt)
846-
for (i in seq_len(length(xt))) {
846+
for (i in seq_along(xt)) {
847847
## Append subject id and period variable
848848
xt[[i]][, `:=`(id = ids, num = i - 1)]
849849
}

0 commit comments

Comments
 (0)