Function replaces multiple transactions that have the same time stamp by a single one and returns an xts or data.table object with unique time stamps only.
mergeTradesSameTimestamp(tData, selection = "median")
an xts object containing the time series data, with one column named "PRICE" indicating the transaction price and one column "SIZE" indicating the number of shares traded.
indicates how the price for a certain time stamp should be calculated in case of multiple observation for a certain time stamp. By default, selection = "median", and the median price is taken. Alternatively:
selection = "max.volume": use the price of the transaction with largest volume.
selection = "weighted.average": take the weighted average of all prices.
data.table or xts object depending on input