Re: [R] Assigning default function arguments to themselves: Why?

2013-12-29 Thread andrewH
Dear Bill-- I have seen it most often in functions that are defined or used inside of other functions, and need an argument from the calling function. So I have, purely as a matter of imitation, taken to doing it when I am writing a function that wants an argument of the calling function passed

Re: [R] Assigning default function arguments to themselves: Why?

2013-12-29 Thread Ista Zahn
On Sun, Dec 29, 2013 at 6:19 PM, andrewH ahoer...@rprogress.org wrote: Dear Bill-- I have seen it most often in functions that are defined or used inside of other functions, and need an argument from the calling function. So I have, purely as a matter of imitation, taken to doing it when I

Re: [R] Assigning default function arguments to themselves: Why?

2013-12-29 Thread andrewH
Dear Bill-- I have figured out that my original question and my most recent response to you were largely nonsensical bits of idiocy. Please do not trouble yourself with them further. But I do thank you most sincerely for your time and attention. andrewH -- View this message in context:

[R] Assigning default function arguments to themselves: Why?

2013-12-16 Thread Andrew Hoerner
Let us suppose that we have a function foo(X) which is called inside another function, bar(). Suppose, moreover, that the name X has been assigned a value when foo is called. I have noticed that many functions contain arguments with defaults of the form X=X. Call this reflexive assignment. How is

Re: [R] Assigning default function arguments to themselves: Why?

2013-12-16 Thread William Dunlap
Of Andrew Hoerner Sent: Monday, December 16, 2013 9:31 AM To: r-help@r-project.org Subject: [R] Assigning default function arguments to themselves: Why? Let us suppose that we have a function foo(X) which is called inside another function, bar(). Suppose, moreover, that the name X has been