"Doran, Harold" <[EMAIL PROTECTED]> wrote: [...]
> a <- c(2,3) > b <- c(4,5,6) > (2*4) + (2*5) + (2*6) + (3*4) + (3*5) +(3*6) > But I do not know of a built in function that would do this. Any > suggestions? How about: sum(a %o% b) ?%o% Cheers, -- Seb ______________________________________________ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html