Usage
quotesCleanup(from,to,datasource,datadestination,ticker,exchanges,
qdataraw,report,selection,maxi,window,type,
rmoutliersmaxi,...)
Arguments
from
character indicating first date to clean, e.g. "2008-01-30".
to
character indicating last date to clean, e.g. "2008-01-31".
datasource
character indicating the folder in which the original data is stored.
datadestination
character indicating the folder in which the cleaned data is stored.
ticker
vector of tickers for which the data should be cleaned, e.g. ticker = c("AAPL","AIG")
exchanges
vector of stock exchange symbols for all tickers in vector "ticker". It thus should have the same length as the vector ticker.
Only data from one exchanges will be retained for each stock respectively, e.g. exchanges = c("T","N").
The possible exchange sy
qdataraw
xts object containing (ONE day and for ONE stock only) raw quote data. This argument is NULL by default. Enabling it means the arguments
from, to, datasource and datadestination will be ignored. (only advisable for small chunks of data)
report
boolean and TRUE by default. In case it is true the function returns (also) a vector indicating how many quotes remained
after each cleaning step.
window
argument to be passed on to the cleaning routine rmOutliers
. type
argument to be passed on to the cleaning routine rmOutliers
. rmoutliersmaxi
argument to be passed on to the cleaning routine rmOutliers
.