[Rd] summary of Surv object crashes R 2.2.0 (PR#8203)

v.moreno@ico.scs.es v.moreno at ico.scs.es
Tue Oct 11 11:41:25 CEST 2005


Full_Name: Victor Moreno
Version: 2.2.0
OS: windows
Submission from: (NULL) (213.151.99.160)


summary of an object class Surv (package survival) hangs and closes R 2.2.0

I would like to have Surv objects in a data frame to build models easier:

t<-rexp(100)
s<-rbinom(100,1,.3)
surv<-Surv(t,s)
x1<-rnorm(100,10,2)
x2<-rnorm(100,10,2)
dat<-data.frame(surv,x1,x2)
coxph(surv~.,data=dat)

so far no problems, but R crashes if I write

summary(dat)

I checked that the problem is in 
summary(surv)

Tested on previous versions of R (1.9.0, 2.1.0) in a friend's computer) gives no
results, but doesn't crash R



More information about the R-devel mailing list