[R] how to avoid to overwrite object

2007-03-07 Thread Aimin Yan
Dear R list, I have a question in R, it could be very simple, but I don't know how to do it? for example: I assign 6 to x in beginning of of my R script code > x<-6 .. After many line code, I forget using x variable before, I use x again, and do assignment like this > x<-45 > x [1] 45 the

Re: [R] how to avoid to overwrite object

2007-03-07 Thread Gabor Grothendieck
Decompose your code into small understandable functions. On 3/7/07, Aimin Yan <[EMAIL PROTECTED]> wrote: > Dear R list, > I have a question in R, it could be very simple, but I don't know how to do > it? > > for example: > I assign 6 to x in beginning of of my R script code > > x<-6 > .. > A