[R-SIG-Finance] Free download for USD Spot Index

Frank fr@nkm60606 @ending from gm@il@com
Mon Oct 8 13:47:33 CEST 2018


Use DTWEXM instead of DGS3MO:

library(quantmod)
library(chron)


##
## Get DGS3MO Treasury yield from FRED
##

getSymbols('DGS3MO',src='FRED')
DGS3MO<-na.locf(DGS3MO/100.0,na.rm = TRUE)
tail(DGS3MO)
file_name <- "DGS3MO.csv"
write.zoo(DGS3MO, file = file_name, append = FALSE, quote = TRUE, sep = ",")
quit()


-----Original Message-----
From: R-SIG-Finance <r-sig-finance-bounces using r-project.org> On Behalf Of
Christofer Bogaso
Sent: Monday, October 08, 2018 4:57 AM
To: r-sig-finance using r-project.org
Subject: [R-SIG-Finance] Free download for USD Spot Index

Hi,

I was looking for some way to download daily historical quotes of USD Spot
Index (as in https://www.fxstreet.com/rates-charts/dollarindexspot) to be
downloaded using R.

Any pointer will be highly appreciated.

Thanks,

	[[alternative HTML version deleted]]

_______________________________________________
R-SIG-Finance using r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-sig-finance
-- Subscriber-posting only. If you want to post, subscribe first.
-- Also note that this is not the r-help list where general R questions
should go.



More information about the R-SIG-Finance mailing list