Skip to content

Commit

Permalink
Use canonical data.table syntax for subsetting
Browse files Browse the repository at this point in the history
  • Loading branch information
nanxstats committed Mar 18, 2024
1 parent a82d950 commit f22083e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/pw_info.R
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ pw_info <- function(
setorderv(ans, cols = c("time", "stratum"))
ans <- ans[order(t), .SD, by = .(time, stratum)]
# filter out the rows with 0 events
ans[!is_almost_k(event, 0), ]
ans <- ans[!is_almost_k(event, 0L)]
setDF(ans)
return(ans)
}

0 comments on commit f22083e

Please sign in to comment.