Skip to content
Prev 11036 / 15274 Next

Plot GBM density in a 3 d plot

Hi Daniel,
?
Am trying to replicate the 3D chart but the URL for US treasuries has been changed. Have tried getting the latest URL into the code but coming up short. Where am I going wrong. 
?
The new URL?is http://www.treasury.gov/resource-center/data-chart-center/interest-rates/Pages/TextView.aspx?data=yieldYear&year=2008

I have tried putting it into the code but come up with the following error
?
http://www.treasury.gov/resource-center/data-chart-center/interest-rates/Pages/TextView.aspx_2008.shtml
Error in if (on == "years") { : missing value where TRUE/FALSE needed

I am attaching the R code for your perusal/review/correction. Please do let me know where I am going wrong.?Any advise/constructive criticism highly appreciated.
?
regards
?
Sean?