Description Usage Arguments Details See Also Examples
This function should probably get folded back into getSymbols.rda in quantmod.
1 2 3 4 5 6 |
Symbols |
a character vector specifying the names of each symbol to be loaded |
from |
Retrieve data no earlier than this date. Default '2010-01-01'. |
to |
Retrieve data through this date. Default Sys.Date(). |
... |
any other passthru parameters |
dir |
if not specified in getSymbolLookup, directory string to use. default "" |
return.class |
only "xts" is currently supported |
extension |
file extension, default "rda" |
split_method |
string specifying the method used to
split the files, currently ‘days’ or
‘common’, see |
use_identifier |
optional. identifier used to
construct the |
date_format |
format as per the
|
verbose |
TRUE/FALSE |
days_to_omit |
character vector of names of weekdays
that should not be loaded. Default is
|
indexTZ |
valid TZ string. (e.g.
“America/Chicago” or “America/New_York”)
See |
Meant to be called internally by
getSymbols
.
The symbol lookup table will most likely be loaded by
setSymbolLookup.FI
If date_format is NULL (the Default), we will assume an
ISO date as changed by make.names
, for
example, 2010-12-01 would be assumed to be a file
containing 2010.12.01
If indexTZ
is provided, the data will be converted
to that timezone
If auto.assign is FALSE, Symbols
should be of
length 1. Otherwise, getSymbols
will give you an error that says “must use
auto.assign=TRUE for multiple Symbols requests” However,
if you were to call getSymbols.FI
directly (which
is NOT recommended) with auto.assign=FALSE
and more than one Symbol, a list would be returned.
Argument matching for this function is as follows. If
the user provides a value for an argument, that value
will be used. If the user did not provide a value for an
argument, but there is a value for that argument for the
given Symbol
in the Symbol Lookup Table (see
setSymbolLookup.FI
), that value will be
used. Otherwise, if setDefaults
has been applied to this function (getSymbols.FI
)
for the argument, the value that was set with
setDefaults
will be used. Finally, if none of the
above are true, the formal defaults will be used.
saveSymbols.days
instrument
setSymbolLookup.FI
loadInstruments
getSymbols
1 2 3 4 5 6 7 8 9 | ## Not run:
getSymbols("SPY", src='yahoo')
dir.create("tmpdata")
saveSymbols.common("SPY", base_dir="tmpdata")
rm("SPY")
getSymbols("SPY", src='FI', dir="tmpdata", split_method='common')
unlink("tmpdata/SPY", recursive=TRUE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.