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 a
Thanks for your reply Ben!
I don't think I want v to be identical to x... I guess I haven't put the
question in the right context. What I'm actually trying to do is... (*
indicates extra information, not necessarily relevant for my question, but
to help put it in context)
A, some matrix (*a tra
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
3 matches
Mail list logo