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
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
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
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