From v.moreno at ico.scs.es  Tue Oct 11 11:41:25 2005
From: v.moreno at ico.scs.es (v.moreno@ico.scs.es)
Date: Tue, 11 Oct 2005 11:41:25 +0200 (CEST)
Subject: [Rd] summary of Surv object  crashes R 2.2.0 (PR#8203)
Message-ID: <20051011094125.3A9511C81B@slim.kubism.ku.dk>

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



[Rd] summary of Surv object crashes R 2.2.0 (PR#8203)
v.moreno@ico.scs.es