Learn R Programming

highfrequency (version 0.7.0.1)

salesCondition: Delete entries with abnormal Sale Condition.

Description

Function deletes entries with abnormal Sale Condition: trades where column "COND" has a letter code, except for "E" and "F".

Usage

salesCondition(
  tData,
  validConds = c("", "@", "E", "@E", "F", "FI", "@F", "@FI", "I", "@I")
)

Arguments

tData

an xts or data.table object containing the time series data, with one column named "COND" indicating the Sale Condition.

validConds

a character vector containing valid sales conditions defaults to c('', '@', 'E', '@E', 'F', 'FI', '@F', '@FI', 'I', '@I'). See details.

Value

xts or data.table object depending on input

Details

To get more information on the sales conditions, see the NYSE documentation. Section about Daily TAQ Trades File. The current version (as of May 2020) can be found online at NYSE's webpage