Thank You,Eric. I run this code without id="id" and it worked!
Eric Berger <[hidden email]>:
<The addicts data.frame has as its first column 'id', which seems to be the cause of the ERROR message.>
Medic <[hidden email]> 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.>
[hidden email] 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.