Re: [R] S4 method signature - integer matrix

2013-07-20 Thread Simon Zehnder
Hi David, thanks for the reply! The prototype solution is I think not the appropriate solution, when the method adds the integer matrix next to the class object into the argument list. Also the .validObject method can only be applied to the object for which the method is called or I have to w

Re: [R] S4 method signature - integer matrix

2013-07-19 Thread David Winsemius
On Jul 19, 2013, at 9:54 AM, Simon Zehnder wrote: > Dear R-Users and R-Devels, > > I am programming a package with S4 classes and I search for a solution of the > following problem: > > If you want an S4 method to await an integer argument you set the signature > like this > > setMethod("my

[R] S4 method signature - integer matrix

2013-07-19 Thread Simon Zehnder
Dear R-Users and R-Devels, I am programming a package with S4 classes and I search for a solution of the following problem: If you want an S4 method to await an integer argument you set the signature like this setMethod("myfunction", signature(object = "myClass", y = "integer"), function(obj