I've built a numerical model in R that spits out lots of data based on different parameterizations. Right now I have it saving the data to a list, but R seems to struggle with "big" lists (10-100 MB). I need the output to be indexable and searchable (for example: extract portions of the output for every model run where parameter x = y).

1) Is there a better data structure than lists? I've looked a bit into using environments instead...

2) I'm trying to name data output objects in the list using permutations (for example, store output by experiment number), but having some trouble getting variables, such as experiment number, which permutes, be numeric instead of a variable name. For example:

... (in a loop)

exp.num

Similar questions and discussions