You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It appears getSymbols.google only checks for symbol/name remappings. It doesn't check for user-specified defaults for any other formal arguments like getSymbols.yahoo does. getSymbols.google has the same formal arguments as getSymbols.yahoo, save index.class.
R># set data source to Google, and first date to 2016-01-01R> setSymbolLookup(MSFT=list(src="google", from="2016-01-01"))
R># returned data still start in 2007, even though default is 2016-01-01R> str(getSymbols("MSFT", auto.assign=FALSE))
An'xts'objecton2007-01-03/2017-01-27containing:Data:num [1:2535, 1:5] 29.929.729.629.630...- attr(*, "dimnames")=Listof2..$:NULL..$:chr [1:5] "MSFT.Open""MSFT.High""MSFT.Low""MSFT.Close"...Indexedbyobjectsofclass: [Date] TZ:UTCxtsAttributes:Listof2$src:chr"google"$updated:POSIXct[1:1], format:"2017-01-29 21:10:44"R>R># set data source to Yahoo, and first date to 2016-01-01R> setSymbolLookup(MSFT=list(src="yahoo", from="2016-01-01"))
R># returned data start in 2016R> str(getSymbols("MSFT", auto.assign=FALSE))
An'xts'objecton2016-01-04/2017-01-27containing:Data:num [1:270, 1:6] 54.354.954.352.752.4...- attr(*, "dimnames")=Listof2..$:NULL..$:chr [1:6] "MSFT.Open""MSFT.High""MSFT.Low""MSFT.Close"...Indexedbyobjectsofclass: [Date] TZ:UTCxtsAttributes:Listof2$src:chr"yahoo"$updated:POSIXct[1:1], format:"2017-01-29 21:10:51"
The text was updated successfully, but these errors were encountered:
It appears
getSymbols.google
only checks for symbol/name remappings. It doesn't check for user-specified defaults for any other formal arguments likegetSymbols.yahoo
does.getSymbols.google
has the same formal arguments asgetSymbols.yahoo
, saveindex.class
.The text was updated successfully, but these errors were encountered: