addMolecules             package:Rdisop             R Documentation

_A_d_d/_s_u_b_t_r_a_c_t _s_u_m _f_o_r_m_u_l_a_e

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

     Simple arithmetic modifications of sum formulae.

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

     addMolecules(formula1, formula2, elements = NULL)
     subMolecules(formula1, formula2, elements = NULL)

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

formula1: Sum formula

formula2: Sum formula

elements: list of allowed chemical elements, defaults to full periodic
          system of elements

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

     addMolecules() adds the second argument to the first.
     subMolecules() subtracts the second argument from the first.

     This can be useful to revert e.g. adduct/fragment formation found
     in ESI mass spectrometry, or to mimick simple chemical reactions.
     No chemical checks are performed.

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

     A list with the elements 

 formula: repeated sum formula

    mass: exact mass of molecule

   score: dummy value, always 1.0

isotopes: a list of isotopes

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

     Steffen Neumann <sneumann@IPB-Halle.DE>

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

     # For proton-Adduct of Ethanol:
     subMolecules("C2H7O", "H")

