Displaying 2 results from an estimated 2 matches for "flowerpot".
2010 Mar 23
3
using a list to index elements of a list
I have a list of vectors, x, with x[[1]]=1:5, say.
And I need to go through each element of each vector in a for loop.
Something like:
for (v in x[[1]])
print(v)
However, I need to store this index "v" for later, and I have lots of other
indices which we range over later in the code so thought I'd make a list of
these indices, v<-list(). But then when I try:
for( v[[1]] in
2010 Mar 24
0
R-help ordinal regression
...Subject: Re: [R] using a list to index elements of a list
> Message-ID: <1269360343789-1679293.post at n4.nabble.com>
> Content-Type: text/plain; charset=us-ascii
>
>
> Thanks Bill, that sorted it out! And thank you too Ben!
>
> Bill and Ben. Are you familiar with the flowerpot men by
> any chance!?
>
> Thanks again!
>
> --
> View this message in context: http://n4.nabble.com/using-a-list-to-index-elements-of-a-list-tp1679184p1679293.html
> Sent from the R help mailing list archive at Nabble.com.
>
>
>
> -----------------------------...