has.OHLC              package:quantmod              R Documentation

_C_h_e_c_k _F_o_r _O_H_L_C _D_a_t_a

_D_e_s_c_r_i_p_t_i_o_n:

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

_U_s_a_g_e:

     is.OHLC(x)
     has.OHLC(x, which = FALSE)

     has.Op(x, which = FALSE)
     has.Hi(x, which = FALSE)
     has.Lo(x, which = FALSE)
     has.Cl(x, which = FALSE)
     has.Vo(x, which = FALSE)
     has.Ad(x, which = FALSE)

_A_r_g_u_m_e_n_t_s:

       x: data object 

   which: disply position of match 

_D_e_t_a_i_l_s:

     Mostly used internally by 'quantmod', they can be useful for
     checking whether a non 'quantmod.OHLC' object can be used in OHLC
     requiring functions like 'Op', 'OpCl', etc.

     Columns names must contain the full description of data, that is,
     Open, High, Low, Close, Volume or Adjusted. Abbreviations will
     return 'FALSE' (or 'NA' when which=TRUE). See 'quantmod.OHLC' for
     details of 'quantmod' naming conventions.

     'is.OHLC' will only return TRUE is there are columns for Open,
     High, Low and Close.  Additional columns will not affect the
     value.

_V_a_l_u_e:

     A logical value indicating success or failure by default.

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

     'is.OHLC' return a single value of TRUE or FALSE.

_A_u_t_h_o_r(_s):

     Jeffrey A. Ryan

_S_e_e _A_l_s_o:

     'quantmod.OHLC','OHLC.Transformations'

_E_x_a_m_p_l_e_s:

     ## Not run: 
     getSymbols("YHOO")

     is.OHLC(YHOO)
     has.OHLC(YHOO)

     has.Ad(YHOO)

     ## End(Not run)

