Thank You,Eric. I run this code without id="id" and it worked!

Eric Berger <ericjber...@gmail.com>:
<The addicts data.frame has as its first column 'id', which seems to be the 
cause of the ERROR message.>
 
 Medic <rsubscr...@inbox.ru>  via  R - help  < r - help @ r -project.org > 
wrote:
<When I run code, I got the ERROR: 
> addicts.cp=survSplit(addicts, cut=addicts$survt[addicts$status==1], 
> end="survt", event="status",start="start", id="id")
>ERROR in survSplit(addicts, cut = addicts$survt[addicts$status == 1],: the 
>suggested id name is already present.>
______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to