Skip to content

Commit 9098bde

Browse files
Merge pull request #594 from jdblischak/note-global-t.1
Fix NOTE about undefined global variable `t.1` in `pw_info()`
2 parents 1b56b9f + 8b44465 commit 9098bde

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

R/pw_info.R

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,6 @@ pw_info <- function(
175175

176176
# pool strata together for each time period
177177
tbl_event <- tbl_event[, .(
178-
t = min(t),
179178
event = sum(event),
180179
info0 = sum(info0),
181180
info = sum(info)
@@ -186,7 +185,6 @@ pw_info <- function(
186185
# -------------------------------------- #
187186
# merge 2 tables tbl_n and tbl_event, where they share the same time, t, stratum
188187
ans <- tbl_event[tbl_n, on = c("time", "stratum", "t")]
189-
ans[, t.1 := NULL]
190188

191189
# filter out the rows with 0 events and unneeded columns
192190
ans <- ans[!almost_equal(event, 0L), .(time, stratum, t, hr, n, event, info, info0)]

0 commit comments

Comments
 (0)