rmBaseline              package:PROcess              R Documentation

_B_a_t_c_h _B_a_s_e_l_i_n_e _S_u_b_t_r_a_c_t_i_o_n.

_D_e_s_c_r_i_p_t_i_o_n:

     Baseline subtraction from each raw spectrum in 'fldr'.

_U_s_a_g_e:

     rmBaseline(fldr, bseoffrda = NULL, breaks = 200, qntl = 0, 
       method = "loess", bw = 0.1, 
       SpecNames = list.files(fldr, pattern = "\\.*csv\\.*"))

_A_r_g_u_m_e_n_t_s:

    fldr: a path to where the raw spectra are stored

bseoffrda: optional; name of the file (with  extension .rda) where the
          baseline-substracted  spectra, a matrix with row-names as the
          m/z  values  and column-names as the spectrum tags, will be
          saved  to. 

  breaks: see bslnoff().

    qntl: see bslnoff().

  method: see bslnoff().

      bw: see bslnoff().

SpecNames: a vector of character strings as spectrum  names.

_V_a_l_u_e:

     A matrix whose columns correspond to  baseline-subtracted spectra
     with row-names as  the m/z values and column-names as the spectrum
      names.

_A_u_t_h_o_r(_s):

     Xiaochun Li

_S_e_e _A_l_s_o:

     `bslnoff'.

_E_x_a_m_p_l_e_s:

     testdir <- system.file("Test", package = "PROcess")
     testM <- rmBaseline(testdir)

