[R] How to convert two-dimensional function to matrix?

Lothar Schmid
Tue, 01 Aug 2006 14:23:46 -0000

I'd like to convert a two-dimensional function f(x,y) to a matrix m,
so that m[x,y] = f [x,y]. How can I achieve this?

Thanks,

Lothar