Guys, I wrote to the finance mailing list earlier with my questions but was
directed here.

Sorry for the repeat.

---------------
library(quantmod)
....
now <- Sys.time()

midnight <- strptime()        # <---- I want to make this a static variable
that will be equal to 12:00:00 am but I dont know what to put here. I keep
getting NA for everything I do

if(now == midnight) {
getFX("EUR/USD", from = Sys.Date() -1, to = Sys.Date() - 1)
write.table(EURUSD, "~Documents/stat arb/project/eurusd.csv", append = TRUE,
row.names = FALSE, col.names = FALSE)
        ....
}

....
---------------

Also, append is ignored when I use "write.csv". I had to resort to using
"write.table". Is this always the case?

As for the historical interest rates, thank you all very much for providing
me with the information (Finance mailing list).
I used the fImport package and called the method "fredSeries" to download
"DPRIME" data for the same time frame as currency data I have (Thank you,
Mr. Gallon).

But that is only data for US. What about other countries?

I was talking to a professor and he said that there was a way to read data
from a website into R if you know the url. Would this help in getting the
interest rates of other countries? (I believe the function is aptly named
"url"). Could someone provide an example, please?

All help is very much appreciated.

Sincerely,
Aaditya Nanduri

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to