To make a nested list in R, you can simply create a list within a list. Here's an example:
main.r214 chars15 lines
This will create a list my_list
that contains two items, each of which is a list with two subitems. You can access items and subitems using double brackets, like this:
main.r187 chars9 lines
This will print out the appropriate items and subitems within the nested list.
gistlibby LogSnag