Learn R Programming

lava (version 1.8.0)

rbind.Surv: Appending Surv objects

Description

rbind method for Surv objects

Usage

# S3 method for Surv
rbind(...)

Value

Surv object

Arguments

...

Surv objects

Author

Klaus K. Holst

Examples

Run this code

y <- yl <- yr <- rnorm(10)
yl[1:5] <- NA; yr[6:10] <- NA
S1 <- survival::Surv(yl,yr,type="interval2")
S2 <- survival::Surv(y,y>0,type="right")
S3 <- survival::Surv(y,y<0,type="left")

rbind(S1,S1)
rbind(S2,S2)
rbind(S3,S3)

Run the code above in your browser using DataLab