I'd like to give a params argument to a function and then attach it so that I can use a instead of params$a everytime I refer to the list element a.
# Use elements of params as parameters in a simulation
Noah has already pointed out that using attach is a bad idea, even though you see it in some examples and books. There is a way around. You can use "local attach" that's called
with. In Noah's dummy example, this would look like
which will yield identical result, but is tidier.