Re: [R] generic function-method arguments accessible by tab-key

2014-04-15 Thread Robert Bauer
found the solution: v <- function(x, ...) UseMethod("v") setMethod('v', signature(x='character'), function(x, ...) v.print(x, ...)) setMethod('v', signature(x='numeric'), function(x, ...) v.numeric(x, ...)) v.print <- function(x,y=x,z=x) print(paste(x,y,z)) v.numeric <- function(x,u=3*x) print(u

Re: [R] generic function-method arguments accessible by tab-key

2014-04-15 Thread Robert Bauer
just a note i liked to add: so the idea is just to have the optional arguments y and z showing up in the the v-function call using the tab-key -- View this message in context: http://r.789695.n4.nabble.com/generic-function-method-arguments-accessible-by-tab-key-tp4688793p4688794.html Sent from

[R] generic function-method arguments accessible by tab-key

2014-04-15 Thread Robert Bauer
Hi, I have the following problem: I wrote a Generic Function that comes with a bunch of different methods and even more arguments. It's kind like this: if ( !isGeneric("v") ) { setGeneric("v", function(x, ...) standardGeneric("v")) } setMethod('v', signature(x='character'),