
Hi R user,
I'm translating VBA code to R code for work.
Here is example,  I hope your guys can guide me how to program multi-dimension array, s price path, on tree structure.

VBA Code
Dim s() as double
Dim v() as double
ReDim s(0 To NoSteps, 0 To NoSteps)
ReDim V(0 To NoSteps, 0 To NoSteps)

I just know that one-dimension array can be created by calling numeric() and two-dim by calling matrix(). 
But, more two-dim array, how to create ? ( ex. trinomial Tree, HJM, BGM...... )
Is it right way to code on programing in finance ?
thanks a lot.

Sincerely,
Josh
	[[alternative HTML version deleted]]

