Re: [R] Difference between a[[i]] and a[i]

2009-02-03 Thread Carl Witthoft
I think the thing that escaped me for quite a while was tracking down the syntax to specify elements of a list element: x[[5]][3:7] to get items from within the 5th element of x. Seems IIRC there are some types of variables for which the form x$thing[3:7] fails and others for which it work

Re: [R] Difference between a[[i]] and a[i]

2009-02-03 Thread Wacek Kusnierczyk
Rolf Turner wrote: > > On 3/02/2009, at 12:45 PM, David Epstein wrote: > >> >> I'm sure I've read about the difference between a[[i]] and a[i] in R, >> but I >> cannot recall what I read. Even more disturbing is the fact that I don't >> know how to search the newsgroup for this. All the different >

Re: [R] Difference between a[[i]] and a[i]

2009-02-02 Thread Rolf Turner
On 3/02/2009, at 12:45 PM, David Epstein wrote: I'm sure I've read about the difference between a[[i]] and a[i] in R, but I cannot recall what I read. Even more disturbing is the fact that I don't know how to search the newsgroup for this. All the different combinations I tried were dec

Re: [R] Difference between a[[i]] and a[i]

2009-02-02 Thread Duncan Murdoch
On 02/02/2009 6:45 PM, David Epstein wrote: I'm sure I've read about the difference between a[[i]] and a[i] in R, but I cannot recall what I read. Even more disturbing is the fact that I don't know how to search the newsgroup for this. All the different combinations I tried were declared not to b

[R] Difference between a[[i]] and a[i]

2009-02-02 Thread David Epstein
I'm sure I've read about the difference between a[[i]] and a[i] in R, but I cannot recall what I read. Even more disturbing is the fact that I don't know how to search the newsgroup for this. All the different combinations I tried were declared not to be valid search syntax. 1. What sort of objec