Skip to content

Commit d202ec1

Browse files
authored
Tighten calendar-time detection to gsNB in gsBoundSummary (#233)
1 parent 1b96c73 commit d202ec1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/gsMethods.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ gsBoundSummary0 <- function(
426426
if (x$n.fix > 1) N <- ceiling(x$n.I) else N <- round(x$n.I, 2)
427427
if (Nname == "Information") N <- round(x$n.I, 2)
428428
# Check if calendar time T is provided (for non-gsSurv objects like gsNB)
429-
if (!is.null(x$T)) {
429+
if (inherits(x, "gsNB") && !is.null(x$T)) {
430430
nstat <- 3
431431
Time <- round(x$T, tdigits)
432432
statframe[statframe$Value == statframe$Value[3], ]$Analysis <- paste(timename, ": ", as.character(Time), sep = "")

0 commit comments

Comments
 (0)