[R] how to check if ... is empty

Thomas Roth (geb. Kaliwe) hamstersquats at web.de
Thu Jul 16 15:46:48 CEST 2009


Hi,

I was wondering what would be the best way to check if the three dots 
argument contains any arguments (i.e. does ... contain any arguments or 
not? )

#Example

test = function(x,y, ...)
{
    #Wanted R-Code
    # if(empty(...))
    #    do some calculation


    plot(x,y,...)

}

Thanks

Thomas Roth




More information about the R-help mailing list