[R] Efficient marginal sums?

2010-11-13 Thread Ted Harding
Hi Folks, [This is not unrelated to the current vector of vectors thread, but arises quite independently] Say I have a function f(x,y) which computes a value for scalar x and y; or, if either x=X or y=Y is a vector, a corresponding vector of values f(X,y) or f(x,Y) (with the usual built-in

Re: [R] Efficient marginal sums?

2010-11-13 Thread David Winsemius
On Nov 13, 2010, at 10:49 AM, (Ted Harding) wrote: Hi Folks, [This is not unrelated to the current vector of vectors thread, but arises quite independently] Say I have a function f(x,y) which computes a value for scalar x and y; or, if either x=X or y=Y is a vector, a corresponding vector of