aggregateQuotes: Aggregate a data.table or xts object containing quote data
Description
Aggregate tick-by-tick quote data and return a data.table or xts object containing the aggregated quote data.
See sampleQData for an example of the argument qData. This function accepts arbitrary number of symbols over an arbitrary number of days.
# Aggregate quote data to the 30 second frequencyqDataAggregated <- aggregateQuotes(sampleQData, alignBy = "seconds", alignPeriod = 30)
qDataAggregated # Show the aggregated data