wilsonfreitas / R-fixedincome

Fixed income tools for R
http://wilsonfreitas.github.io/R-fixedincome/
Other
51 stars 25 forks source link

bad error message #10

Closed wilsonfreitas closed 2 years ago

wilsonfreitas commented 9 years ago

The message error claims for a calendar but the missing arguments are term or from, to dates.

> as.spotrate(i, daycount='business/252', calendar=cal)
Error in compound.spotrate(obj, term) : Missing calendar
> as.spotrate(i, '1 days', daycount='business/252', calendar=cal)
0.0955667 discrete business/252 ANBIMA