Hi everyone,
I have as list of 50 associations called bigIndex, where the keys are simply the numbers 1 through 50. How can I select or extract a subset of those associations, for example, the associations whose keys are 1, 23, and 47?
Regards,
Gregory
I too thought I had a list of associations. I created it using GroupBy and mistakenly thought it had created a list like GatherBy does. How embarrassing.
Thanks again,
aah ok, I thought you had something like {assoc1,assoc2,assoc3,...} (a list of associations). But you just have 1 association! well, you understand the idea now, which is more valuable!
Hi Sander,
You were on the right track! This works:
bigIndex[[{Key[1], Key[23], Key[47]}]]
does
bigIndex[[All,{1,23,47}]]
or
bigIndex[[All,{Key[1],Key[23],Key[47]}]]
work?