gsi.recode           package:compositions           R Documentation

_I_n_t_e_r_n_a_l _f_u_n_c_t_i_o_n: _R_e_c_o_d_e _m_i_s_s_i_n_g_s _w_i_t_h _I_E_E_E _n_u_m_b_e_r _a_n_d _v_i_c_e _v_e_r_s_a

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

     The missing codes can be replace with arbitrary value e.g. IEEE
     numbers and viceversa through this interface.

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

     gsi.recodeM2C(x,y=x,BDL,SZ,MAR,MNAR,NMV)
     gsi.recodeC2M(x,y=x,na,nan,ninf,inf,neg,zero,pos)
     gsi.recodeM2Clean(x,y=x,BDL=NaN,SZ=NaN,MAR=NaN,MNAR=NA,NMV)
     gsi.cleanR(x)

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

       x: the dataset having missings or IEEE numbers

       y: a dataset of similar shape, where the replacment should take
          place

     BDL: value to replace for BDL

      SZ: value to replace for SZ

     MAR: value to replace for MAR

    MNAR: value to replace for MNAR

     NMV: value to replace for NMV

      na: value to replace for 'NA'

     nan: value to replace for 'NaN'

    ninf: value to replace for '-Inf'

     inf: value to replace for 'Inf'

     neg: value to replace for numbers with 'x<0'

    zero: value to replace for numbers with 'x==0'

     pos: value to replace for numbers with 'x>0'

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

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

     y with entries replaced. gsi.cleanR replaces all improper numbers
     with 0.

_N_o_t_e:

     Do not use gsi.* functions directly since they are internal
     functions of the package

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

     K.Gerald v.d. Boogaart <URL: http://www.stat.boogaart.de>

_R_e_f_e_r_e_n_c_e_s:

_S_e_e _A_l_s_o:

     'compositions.missing'

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

     gsi.plain(acomp(c(12,3,4)))

