[R] Use of the dot.dot.dot option in functions.

From: KENNETH R CABRERA <krcabrer_at_une.net.co>
Date: Wed, 06 Apr 2011 11:04:11 -0500

Hi R users:

I try this code, where "fun" is a parameter of a random generating function name, and I pretend to use "..." parameter to pass the parameters of different random generating functions.

What am I doing wrong?


    vp<-replicate(nsim,t.test(fun(n,...),fun(n,...))$p.value)     return(vp)

This works!

This two fails:

Thank you for your help.


        [[alternative HTML version deleted]]

R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Wed 06 Apr 2011 - 16:07:23 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 06 Apr 2011 - 17:10:27 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive