aboutsummaryrefslogtreecommitdiffstats
path: root/R/tranches_RV_BC.R
diff options
context:
space:
mode:
Diffstat (limited to 'R/tranches_RV_BC.R')
-rw-r--r--R/tranches_RV_BC.R2
1 files changed, 1 insertions, 1 deletions
diff --git a/R/tranches_RV_BC.R b/R/tranches_RV_BC.R
index 24968ec6..112d13c0 100644
--- a/R/tranches_RV_BC.R
+++ b/R/tranches_RV_BC.R
@@ -61,7 +61,7 @@ for(i in seq_along(runs$name1)){
if(index.name2=="ig19"){
alldates <- alldates[alldates!=as.Date("2013-11-29")] ##people are lazy the day after Thanksgiving
}
- bus.dates <- as.Date(names(which(isBusinessDay(calendar="UnitedStates/GovernmentBond", alldates))))
+ bus.dates <- alldates[isBusinessDay(calendar="UnitedStates/GovernmentBond", alldates)]
for(j in seq_along(bus.dates)){
tradedate <- bus.dates[j]