Surv(time, event) or Surv(time, time2, event, type=<<see below>>, origin=0) is.Surv(x)
In the case of is.Surv, a logical value T if x inherits from class "Surv", otherwise an F.
If type = "interval2", the representation given above is assumed, with NA taking the place of infinity. If type = "interval", event must be given. If event is 0, 1, or 2, the relevant information is assumed to be contained in time, the value in time2 is ignored, and the second column of the result contains a placeholder.
Presently, the only methods allowing interval censored data are the parametric models computed by survreg, so the distinction between open and closed intervals is unimportant. The distinction is important for counting process data and the Cox model but interval censoring is currently not implemented for coxph.
Surv(leukemia$time, leukemia$status) Surv(heart$start, heart$stop, heart$event)