[R] Usage of apply function with two matrices

2010-03-12 Thread Michal Szewczyk
Hello, I am struggling to overcome following problem: I have matrix Vf and matrix V, which both have 3 columns and I want to create a spline function basing on coordinates from this matrices (more precisely coordinates of function nr 1: x are taken from Vf[,1] and y are taken from V[,1]

Re: [R] Usage of apply function with two matrices

2010-03-12 Thread jim holtman
Consider using the indices instead of the matrices themselves. You can pass a list of indices and then reference the two matrices any way you want to compute the return value. On Fri, Mar 12, 2010 at 6:49 AM, Michal Szewczyk miszewc...@tlen.pl wrote: Hello, I am struggling to overcome