Displaying 2 results from an estimated 2 matches for "tp1679184p1679293".
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
...cii
>
>
> 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.
>
>
>
> ------------------------------
>
> Message: 39
> Date: Tue, 23 Mar 2010 16:07:17 +0000
> From: Benilton Carvalho <beniltoncarvalho at gmail.com>
> To: William Dunlap <wdunlap at tibco....