I have a R function :
smallFunction <- function(x,y=2,z=3){ x+y+z }
I want to define the result of this function as the default value of a parameter of a bigger one :
bigFunction <- function(a,b,x,c=smallFunction(x,y,z))
How can I define y and z values ? Knowing that they could be define or left at their default values. I don't really want to do such a thing :
bigFunction <- function(a,b,x,c=smallFunction(x,y,z),y=2,z=3)
because in reality I have a lot of default parameters for the smallFunction
I would rather something like :
bigFunction <- function(a,b,x,c=smallFunction(x,y,z),...)
Thanks