# NOT RUN {
#In order for these examples to work, the folder datasource
#should contain two folders named 2008-01-02 and 2008-01-03.
#These folder contain the files with the trade data,
#which are named "AAPL_trades.RData" or "AA_trades.RData".
from="2008-01-02";
to = "2008-01-03";
# }
# NOT RUN {
datasource="C:\data";
# }
# NOT RUN {
#TAQLoad: load data for stock AAPL
# }
# NOT RUN {
xx = TAQLoad(tickers="AAPL",from,to,trades=TRUE,quotes=FALSE,
datasource=datasource,variables=NULL)
# }
# NOT RUN {
#Load only price data for stocks AA and AAPL
# }
# NOT RUN {
xx = TAQLoad(tickers=c("AA","AAPL"),from,to,trades=TRUE,
quotes=FALSE,datasource=datasource,variables="PRICE")
# }
Run the code above in your browser using DataLab