getColClasses             package:CALIB             R Documentation

_C_o_n_s_t_r_u_c_t _c_o_l_C_l_a_s_s_e_s _v_e_c_t_o_r _f_o_r _u_s_e _w_i_t_h_i_n _r_e_a_d._r_g _f_u_n_c_t_i_o_n

_D_e_s_c_r_i_p_t_i_o_n:

     Construct a colClasses vector, an argument in read.table used in
     read.rg

_U_s_a_g_e:

      getColClasses(cols,...)

_A_r_g_u_m_e_n_t_s:

    cols: a character vector of all columns to search against

     ...: accepts any character lists, character vectors or weight
          functions to match wanted columns against cols

_D_e_t_a_i_l_s:

     This is an internally called function by read.rg to create a
     colClasses  vector used in read.table for fast loading of only
     required columns in read.rg

_V_a_l_u_e:

     Character. A named vector of classes to assumed for the columns.
     Possible values are NA (when 'type.convert' is used), NULL (when
     the column is skipped).

_A_u_t_h_o_r(_s):

     Hui Zhao

_R_e_f_e_r_e_n_c_e_s:

     'getColClasses' in limma package

_E_x_a_m_p_l_e_s:

     allcnames <- c("Block","Column","Row","Name","ID", "F635 Mean","F532 Mean","Flag","Autoflag")
     Annotation <- c("Block","Column")
     Columns <- list(R="F635 Mean",G="F532 Mean")

     getColClasses(allcnames, Annotation, Columns)

