[R] Multi matrix row-wise mapply?

cmr.Pent at gmail.com cmr.Pent at gmail.com
Tue Oct 21 08:58:57 CEST 2008

Hi group!

Suppose I have 2 matrices A and B of equal dimensions.
I want to apply a function f to all corresponding pairs of rows from A
and B in an efficient manner.
Basically, I want

mapply(f, data.frame(A), data.frame(B))

but for rows.

How do I do it?


More information about the R-help mailing list