Re: [Rd] YA S4 method dispatch question

2006-05-09 Thread Martin Morgan
You won't like this ...;) return(drop(callGeneric(array(x, c(1, length(x)), val) ))) i.e., 'val' is inside 'array'! I was discouraged from answering sooner by the complexity of your example; simplifying it might

[Rd] YA S4 method dispatch question

2006-05-09 Thread Paul Roebuck
I recently encountered this and was wondering if someone could explain what happened. Basis of question involves what the difference between the calls makes as the end result is the same: > identical(matrix(1:8, nrow = 1), array(1:8, c(1, 8))) TRUE If I run the code below as shown, I get the foll