Skip to content

Commit 998b124

Browse files
committed
fix linter
1 parent d80c8bf commit 998b124

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
@@ -819,7 +819,7 @@ trial_simulate <- function(self, n, .niter, ...) {
819819
}
820820
xt <- lapply(xt, data.table)
821821
if (count == 0) nsim <- n * length(xt)
822-
for (i in seq_len(length(xt))) {
822+
for (i in seq_along(xt)) {
823823
## Append subject id and period variable
824824
xt[[i]][, `:=`(id = ids, num = i - 1)]
825825
}

0 commit comments

Comments
 (0)