All,
My package is S4 an I would like to strongly type the input to the constructor
function. I understand from reading help etc that the call to new should be in
a function and the method initialize is only used when one would like to
customize the call to new or when the inputs are differen
Hi,
The short answer is that initialize() dispatches only on its first argument
but the required effect can be achieved in a number of ways:
(1) Write a method for initialize() and put suitable checks at its start,
e.g. if(!is(data1, "numeric"), stop()) .
Sometimes you may wish to say ' dat