selectexchange: Retain only data from a single stock exchange

Description Usage Arguments Value Author(s)

Description

Function returns an xts object containing the data of only 1 stock exchange.

Usage

1
selectExchange(data,exch="N");

Arguments

data

an xts object containing the time series data. The object should have a column "EX", indicating the exchange by its symbol.

exch

The symbol of the stock exchange that should be selected. By default the NYSE is chosen (exch="N"). Other exchange symbols are:

  • A: AMEX

  • N: NYSE

  • B: Boston

  • P: Arca

  • C: NSX

  • T/Q: NASDAQ

  • D: NASD ADF and TRF

  • X: Philadelphia

  • I: ISE

  • M: Chicago

  • W: CBOE

  • Z: BATS

Value

xts object

Author(s)

Jonathan Cornelissen and Kris Boudt


R-Finance/RTAQ documentation built on May 8, 2019, 4:48 a.m.