[R] How to extract data table

2010-04-29 Thread ericyujin99
I'm a very new user of R, The problem I got is when I have lots of data table, 3 columns and 100 rows assigned to a variable x. how can I transform the table into a external file excel or other files without losing any information. So that make the data look nicer. -- View this message in

[R] Kaplan-Meier survfit problem

2010-04-19 Thread ericyujin99
When I try to the code from library(survival) of library(ISwR), the following code survfit(Surv(days,status==1)) that could produce Kaplan-Meier estimates shows the following error Error in survfit(Surv(days, status == 1)) : Survfit requires a formula or a coxph fit as the first argument