[R] str and Surv objects

Laura Holt lauraholt_983 at hotmail.com
Wed Aug 11 03:59:35 CEST 2004


Dear R People:

I used the "Surv" function to produce the following object:
>a <- Surv(1:4,2:5,c(0,1,1,0)) a
[1] (1,2+] (2,3 ] (3,4 ] (4,5+]
>str(a)
Error in "[.Surv"(object, 1:ile) : subscript out of bounds
>

Why does str(a) give an error, please?  Or did I do something wrong?

Thanks in advance.
R Version 1.9.1 Windows
Sincerely,
Laura Holt
mailto: lauraholt_983 at hotmail.com






More information about the R-help mailing list