[Rd] Aliasing a function

hadley wickham h.wickham at gmail.com
Sun Feb 24 01:41:42 CET 2008


On Sat, Feb 23, 2008 at 5:52 PM, Gabor Grothendieck
<ggrothendieck at gmail.com> wrote:
> I assume he wants to be able to change the
>  formals although its confusing since the example
>  uses the same formals in both cases.

Yes, that was an important point that I forgot to mention!  Thanks for
the pointer to formals but it doesn't work in this case:

function (a = 1, b = 2, c = 3)
g(...)
> f(c=5)
Error in f(c = 5) : '...' used in an incorrect context

Hadley


-- 
http://had.co.nz/



More information about the R-devel mailing list