search for: matrixorarray

Displaying 2 results from an estimated 2 matches for "matrixorarray".

2006 Apr 12
1
S4 method dispatch matrixOrArray
...generic", match.call()[[1]], "\n") standardGeneric("foo") }) setMethod("foo", signature(A = "vector"), function(A, ...) { callGeneric(matrix(A, nrow = 1), ...) }) setClassUnion("matrixOrArray", c("matrix", "array")) setMethod("foo", signature(A = "matrixOrArray"), function(A, ...) { cat("A =", A, "\n") }) ## Test foo(1:4) foo(matrix(1:4, 1, 4)) foo(array(1:4, c(1, 4, 1))) ----...
2006 Apr 13
2
[R] S4 method dispatch matrixOrArray (fwd)
...>---------- Forwarded message ---------- >Date: Wed, 12 Apr 2006 18:24:46 -0400 >From: Gabor Grothendieck <ggrothendieck@gmail.com> >To: Paul Roebuck <roebuck@mdanderson.org> >Cc: R Help Mailing List <r-help@stat.math.ethz.ch> >Subject: Re: [R] S4 method dispatch matrixOrArray > >On 4/12/06, Paul Roebuck <roebuck@mdanderson.org> wrote: > > > >>On Wed, 12 Apr 2006, Gabor Grothendieck wrote: >> >> >> >>>On 4/12/06, Paul Roebuck <roebuck@mdanderson.org> wrote: >>> >>> >>> >...