Re: [R] Problems accessing environment() in function

2012-05-02 Thread Heiko Neuhaus
function to ignore non existing objects. If that is not possible I will have to accept this. If you put the ls() call later, you'll pick up other local variables (names, result, n) as well. Of course. That is why I call it at the very first line of my function. Thanks agai

Re: [R] Problems accessing environment() in function

2012-05-02 Thread Heiko Neuhaus
on existing objects when I create my list. In my given example I was intending to receive an empty list, since no valid arguments were passed to test2(). In other words: I want a list containing all _existing_ variable/value combinations and just skip the missing ones. Thanks again for you

[R] Problems accessing environment() in function

2012-05-01 Thread Heiko Neuhaus
;x" in test2() to work behave just like "x" in test1(). (In this example the correct list in test2() would be empty). Thanks a lot for your time. Best wishes, Heiko Neuhaus __ R-help@r-project.org mailing list https://stat.ethz.ch/ma