RE: [R] assignment in lists

2003-06-26 Thread Prof Brian Ripley
On Fri, 27 Jun 2003, Philippe Grosjean wrote: > Prof. Brian Ripley wrote: > >Philippe, > > >as.list(NULL) is the same as list(), and that is what I think you should > >be using in both cases. > > OK, thank you. > > >However, I do think that either both or neither of your examples should > >work

RE: [R] assignment in lists

2003-06-26 Thread Philippe Grosjean
Prof. Brian Ripley wrote: >Philippe, >as.list(NULL) is the same as list(), and that is what I think you should >be using in both cases. OK, thank you. >However, I do think that either both or neither of your examples should >work: my preference would be `neither' but as S allows both it should b

RE: [R] assignment in lists

2003-06-26 Thread Prof Brian Ripley
Philippe, as.list(NULL) is the same as list(), and that is what I think you should be using in both cases. However, I do think that either both or neither of your examples should work: my preference would be `neither' but as S allows both it should be `either'. Brian On Thu, 26 Jun 2003, Philip

RE: [R] assignment in lists

2003-06-26 Thread Philippe Grosjean
Ok, I got it. I should have to define a as a list, in order to get a sane behaviour... That makes sense: > a <- as.list(NULL) > a[["item"]] <- 1:3 > a$item [1] 1 2 3 Best, Philippe Grosjean -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Philippe Grosjean