removeCensored             package:prada             R Documentation

_R_e_m_o_v_e _r_o_w_s _t_h_a_t _c_o_n_t_a_i_n _c_e_n_s_o_r_e_d _d_a_t_a

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

     Remove rows that contain censored data in the colums of 'x'
     specified by 'columns'.

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

     ## S4 method for signature 'matrix':
     removeCensored(x, values, columns, na.rm=TRUE)
     ## S4 method for signature 'data.frame':
     removeCensored(x, values, columns, na.rm=TRUE)
     ## S4 method for signature 'cytoFrame':
     removeCensored(x, values, columns, na.rm=TRUE)

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

       x: Object of class matrix, data.frame, or cytoFrame.

  values: Values that correspond to censored data. If missing,
          'range(x)' is used.

 columns: Numeric or character vector specifying the columns of 'x'
          that are compared against 'values'. If missing, '1:ncol(x)'
          is used.

   na.rm: Logical. If 'TRUE', rows that contain 'NA' values are also
          removed.

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

     The function removes all rows that contain, in the columns
     specified by the 'columns' argument, values that are contained in
     the 'values' argument. If 'na.rm' is 'TRUE', then rows that
     contain 'NA' values are also removed.

     An application is with FACS data, where measurements outside of
     the detector's dynamic range produce minimal or maximal values.
     For example, if a 16-bit A/D converter was used, top-censored data
     would have a value of 65535.

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

     Object of the same class as 'x', with some rows removed.

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

     Florian Hahne <f.hahne@dkfz.de>, Wolfgang Huber <huber@ebi.ac.uk>

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

     set.seed(8215)
     mat <- matrix(floor(runif(20000)*1024), ncol=4)
     range(mat[,1])
     mat <- removeCensored(mat, columns=1:2)
     range(mat[,1])
     range(mat[,3])

