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

From: William Simpson <william.a.simpson_at_gmail.com>
Date: Sat, 26 Apr 2008 14:28:28 +0100

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.
>



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Sat 26 Apr 2008 - 13:37:18 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 26 Apr 2008 - 15:00:32 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive