Description Usage Arguments Details Value See Also Examples
Save data to disk the way that getSymbols.FI
expects it to be saved.
1 2 3 4 5 | saveSymbols.days(Symbols, base_dir = "",
extension = "rda", env = .GlobalEnv)
saveSymbols.common(Symbols, base_dir = "",
extension = "rda", env = .GlobalEnv)
|
Symbols |
character vector of names of objects to be saved |
base_dir |
character. directory in which to store data. |
extension |
file extension (“rda”) |
env |
environment that holds the data to be saved (.GlobalEnv by default) |
If they do not already exist, subdirectories will be
created for each of the Symbols
.
saveSymbols.common
will save a single ‘rda’
file for each of the Symbols
in that symbol's
subdirectory. saveSymbols.days
will split the data
up into days and save a separate ‘rda’ file for
each day in that symbol's subdirectory.
called for side-effect.
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.