Displaying 1 result from an estimated 1 matches for "bigfre".
Did you mean:
bigfred
2010 Sep 22
2
efficient list indexing
Hello everyone,
I need some help with lists inside lists (a good way to emulate a struct)\
Assume that there is a small list called fred:
fred <- list(happy = 1:10, name = "squash")
and a big list called bigfred that includes fred list 5 times
bigfred <- rep(fred,5)
Is it possible somehow to index all these sublists(fred) inside bigfred with a
more direct way like this:
bigfred[1] shows the first sublist fred
bigfred[2][2] shows the second sublist fred, the second element of the fred list
So far I f...