Re: [R] Matlab to R

2011-08-09 Thread Paul Hiemstra
On 08/09/2011 04:39 AM, Annabel wrote: > I am trying to convert a matlab code to R. > Most of the conversion statements are simple, but problem is with return. > > Since it's a recursive function it's a bit complicated. Anyway in matlab > we can have return statment like > > [price, notional] = fu

[R] Matlab to R

2011-08-08 Thread Annabel
I am trying to convert a matlab code to R. Most of the conversion statements are simple, but problem is with return. Since it's a recursive function it's a bit complicated. Anyway in matlab we can have return statment like [price, notional] = functionname() and also for the same function... not