Skip to content
Prev 293359 / 398502 Next

Problems accessing environment() in function

Thank you very much for your suggestion.
I have already figured out a very similar solution using for/eval that 
basically does the same. I was hoping that I would somehow could get 
around the ugly loop using a more elegant approach. The loop should have 
a negative impact on performance since my function is using a lot of 
parameters. I was hoping, that there was some flag to tell the as.list 
function to ignore non existing objects. If that is not possible I will 
have to accept this.
Of course. That is why I call it at the very first line of my function.

Thanks again!

Heiko Neuhaus