## Not run:
# # All 4 getSymbols calls return the same
# # Sony (6758.T) OHLC to the global environment
# # The last example is what NOT to do!
#
# ## Method #1
# getSymbols('6758.T',src='yahooj')
#
#
# ## Method #2
# getSymbols('YJ6758.T',src='yahooj')
#
#
# ## Method #3
# setDefaults(getSymbols,src='yahooj')
# # OR
# setSymbolLookup(YJ6758.T='yahooj')
#
# getSymbols('YJ6758.T')
#
# #########################################
# ## NOT RECOMMENDED!!!
# #########################################
# ## Method #4
# getSymbols.yahooj('6758.T',env=globalenv())
# ## End(Not run)
Run the code above in your browser using DataLab