search for: deal_dates

Displaying 1 result from an estimated 1 matches for "deal_dates".

2012 Feb 12
3
Counting the loop-round of a "for"-loop
...s period. Since i have found no "easy" way to work with time data, the data presents itself in the structure TIme Index - Stock Price 1 - 15,6 2 - 17 ... ... 2010 - 28 2011- 28,5 ... 4500 - 23 Since I want to have the volatility only for certain dates, I define these dates in a vector Deal_Dates <- c(500,600,700,805) and use the for-command to calculate these specific volatities via for(i in Deal_Dates){Volatility(i)} My problem is now, that I want to save the results in a new matrix which i created in the structure results <- matrix(rep(NA,4*2),4,2) in a way that Time Index...