diff options
| -rw-r--r-- | R/calibrate_tranches_BC.R | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/R/calibrate_tranches_BC.R b/R/calibrate_tranches_BC.R index 562b1bb5..e4128871 100644 --- a/R/calibrate_tranches_BC.R +++ b/R/calibrate_tranches_BC.R @@ -121,7 +121,7 @@ for(i in seq_along(runs$name)){ paste0(paste(index.name, tenor, as.character(tradedate), sep="_"),".RData")))
## save risk numbers into the csv file
- if(!updateflag && i==1){
+ if(!updateflag && j==1){
cat(csvheaders(index), "\n", file=filename)
}
cat(tocsv(index), "\n", file=filename, append=TRUE)
|
