[R] g(x,y) = f(x,y) - e(x)- e(y)?

William Simpson william.a.simpson at gmail.com
Sat Apr 26 15:28:28 CEST 2008


Thanks everyone for the help.

Greg, I posted the equation from Prof Brillinger's paper. To me it is
not clear how or why to subtract a vector from a matrix (since they
have diff dimensions). That's why I posted my question to the experts
here!

Anyway, I have some answers now.

Cheers
Bill

On Wed, Apr 23, 2008 at 5:52 PM, Greg Snow <Greg.Snow at imail.org> wrote:
> It is not clear exactly what you want to do by subtracting a vector from a matrix, but look at the "sweep" function, it may do what you want.
>



More information about the R-help mailing list