log.na                  package:vsn                  R Documentation

_W_r_a_p_p_e_r _a_r_o_u_n_d _t_h_e _l_o_g() _f_u_n_c_t_i_o_n _t_h_a_t _a_v_o_i_d_s _w_a_r_n_i_n_g_s
_w_h_e_n _n_e_g_a_t_i_v_e _v_a_l_u_e_s _a_r_e _p_r_e_s_e_n_t_e_d

_D_e_s_c_r_i_p_t_i_o_n:

     Wrapper around the log() function that avoids warnings when
     negative values are presented

_U_s_a_g_e:

     log.na(x, ...)

_A_r_g_u_m_e_n_t_s:

       x: A numeric or complex vector.

     ...: Further arguments that get passed on to 'log'.

_V_a_l_u_e:

     A vector of the same length as `x' containing the transformed
     values.  For x<=0, NA is returned without warning.

_A_u_t_h_o_r(_s):

     Wolfgang Huber <URL: http://www.dkfz.de/mga/whuber>

_S_e_e _A_l_s_o:

     'log'

_E_x_a_m_p_l_e_s:

        log.na(-3:3)

