num2Latex             package:cwhstring             R Documentation

_C_o_n_v_e_r_t _n_u_m_e_r_i_c _c_o_n_t_a_i_n_i_n_g _e+-_p_o_w_e_r

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

     Latex string with power notation

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

       num2Latex(x, digits = 0)

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

       x: numerical vector

  digits: digits to show, see also 'options' 'scipen' 

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

     Vector of strings representing the given numbers, xe-y -> $x . 10
     ^{-y}$

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

     dimitris.rizopoulos@med.kuleuven.be

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

      z <- c(1.5, 5e-12, 2.33e-03, 8.12e+10, 2)
      num2Latex(z)     #  1.5 #  5 \cdot 10^{-12} #  0.00233 #  8.12 \cdot 10^{10} #  2
      num2Latex(z, 2)  #  1.5 #  5 \cdot 10^{-12} #  2.33 \cdot 10^{-3} #  8.12 \cdot 10^{10} #  2 
      num2Latex(z, -3) #  1.5 #  5 \cdot 10^{-12} #  0.00233 #  81200000000 #  2 

