Fetch data from SQLite database. As with other methods
extending getSymbols
this function should NOT be called directly.
getSymbols.SQLite(Symbols,
env,
return.class = 'xts',
db.fields = c("row_names",
"Open",
"High",
"Low",
"Close",
"Volume",
"Adjusted"),
field.names = NULL,
dbname = NULL,
POSIX = TRUE,
...)
A call to getSymbols.SQLite will load into the specified environment one object for each 'Symbol' specified, with class defined by 'return.class'.
a character vector specifying the names of each symbol to be loaded
where to create the objects
desired class of returned object
character vector naming fields to retrieve
names to assign to returned columns
database name
are rownames numeric
additional arguments
Jeffrey A. Ryan
Meant to be called internally by getSymbols
(see also)
One of a few currently defined methods for loading data for use with 'quantmod'. Its use requires the packages 'DBI' and 'RSQLite', along with a SQLite database.
The purpose of this abstraction is to make transparent the 'source' of the data, allowing instead the user to concentrate on the data itself.
SQLite https://www.sqlite.org/index.html
David A. James RSQLite: SQLite interface for R
R-SIG-DB. DBI: R Database Interface
getSymbols
if (FALSE) {
getSymbols("QQQQ",src="SQLite")
}
Run the code above in your browser using DataLab