has.Chg: Check for Bid, Ask, Mid, and/or Trade columns in data

Description Usage Arguments Details Value Author(s)

View source: R/has.Chg.R

Description

A set of functions to check for appropriate BAM and BATM column names within a data object, as well as the availability and positions of those columns.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13

Arguments

x

data object

which

display position of match

Details

is.BAM (and is.BATM, similarly) will only return TRUE if there are columns for Bid, Ask, Mid (and Trade for is.BATM). Additional columns will not affect the value.

Value

A logical value indicating success or failure by default.

If which=TRUE, a numeric value representing the column position will be returned.

is.BAM and is.BATM return a single value of TRUE or FALSE.

Author(s)

Garrett See (but based on – and mostly copied from – Jeffrey A. Ryan's quantmod)


qmao documentation built on May 2, 2019, 4:54 p.m.