Description Usage Arguments Value Author(s)
Function replaces multiple transactions that have the same time stamp by a single one and returns an xts object with unique time stamps only.
1 | mergeTradesSameTimestamp(tdata,selection="median")
|
tdata |
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. |
selection |
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:
|
xts object
Jonathan Cornelissen and Kris Boudt
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.