Displaying 2 results from an estimated 2 matches for "quantanalysis".
2011 May 20
0
Spline Function
...ces - modelprices[2] :
non-numeric argument to binary operator
Is there any way to perform this substraction?
I tried the normal approaches like
> as.numeric(modelprices[2])
Error: (list) object cannot be coerced to type 'double'
Thanks in advance!--
Regards,
Animesh Saxena
(www.quantanalysis.in)
2011 Aug 09
1
Matlab to R
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...
notional(1) = functionname()
how to do this in R? i have tried using data frame but still