Skip to content
Prev 154762 / 398513 Next

How to create functions with new "defaults"?

On Tue, 2 Sep 2008, David Hajage wrote:

            
You should name the arguments in the t.test call for safety.  But just

t.test.new <- function(..., paired = TRUE) t.test(..., paired=paired)

is all you need, and for example allows formulae to be used.