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

From: Lothar Schmid <lothar.schmid_at_googlemail.com>
Date: Wed 02 Aug 2006 - 00:23:46 EST


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



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 and provide commented, minimal, self-contained, reproducible code. Received on Wed Aug 02 00:38:26 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Wed 02 Aug 2006 - 02:17:40 EST.

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