[R-SIG-Finance] Recursively retrieve Date OHLC Adj Close and dividends, adjust some dividends, then calculate current yield two problems

2012-10-17 Thread FJ M
I successfully retrieve Date OHLCAdjC and dividends for two stocks, code at the end. 1) I am unable to replace the MSFT $3.08 dividend with $0.08 (the ongoing dividend without the $3 special dividend) using: if (ticker[i]==MSFT) {print(Divs[4]); Divs[4] = 0.08; print(Divs[4])} ## $3

Re: [R-SIG-Finance] Recursively retrieve Date OHLC Adj Close and dividends, adjust some dividends, then calculate current yield two problems

2012-10-17 Thread Joshua Ulrich
As it says in the posting guide and the general instructions to the mailing lists, please don't send HTML mail. http://www.r-project.org/posting-guide.html http://www.r-project.org/mail.html#instructions The mess below was produced in an attempt to un-HTML your email. People are unlikely to spend