
Symbols
to specified env
from local comma seperated file. This method is
not to be called directly, instead a call to
getSymbols(Symbols,src='csv')
will in
turn call this method. It is documented for the
sole purpose of highlighting the arguments
accepted, and to serve as a guide to creating
additional getSymbols getSymbols.csv(Symbols,
env,
dir="",
return.class = "xts",
extension="csv",
...)
Symbol
specified, with class defined
by return.class
. Presently this may be ts
,
its
, zoo
, xts
, or timeSeries
.getSymbols
(see also).One of a few currently defined methods for loading
data for use with read.csv
.
getSymbols
,
read.csv
,
setSymbolLookup
# All 3 getSymbols calls return the same
# MSFT to the global environment
# The last example is what NOT to do!
## Method #1
getSymbols('MSFT',src='csv')
## Method #2
setDefaults(getSymbols,src='csv')
# OR
setSymbolLookup(MSFT='csv')
getSymbols('MSFT')
#########################################
## NOT RECOMMENDED!!!
#########################################
## Method #3
getSymbols.csv('MSFT',verbose=TRUE,env=globalenv())
Run the code above in your browser using DataLab