[R-SIG-Finance] How to get data from another source when the first one fails...

George Kumar grgkumar4 at gmail.com
Thu Oct 1 03:16:52 CEST 2015


Hi all,

I use following command to make getSymbols (from quantmod package) get data
from locally stored csv files.

setDefaults(getSymbols,src='csv')

My problem is that if the data is not found locally, I want it to get it
from yahoo/google. How to go about doing this. If setDefaults allowed
multiple sources, it would have been possible. Something like the following:

setDefaults(getSymbols,src='csv yahoo')

Please let me know how this can be done.

Thanks.
George

	[[alternative HTML version deleted]]



More information about the R-SIG-Finance mailing list