obfuscate               package:pbatR               R Documentation

_O_b_f_u_s_c_a_t_i_n_g _P_e_d_i_g_r_e_e _a_n_d _P_h_e_n_o_t_y_p_e _F_i_l_e_s

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

     Randomly permutes the data in a pedigree or phenotype file and
     changes column headers so as to mangle the data. Used for
     debugging requests, in the hopes that the mangled data will
     produce the same bad output, but will not be identifiable.

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

     obfuscate( obj )

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

     obj: object of class `ped' or `phe' to be used (the same object
          type is returned, only mangled; you must write this out to
          file).

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

     'pbat' 'pbat.help'

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

     ## Not run: 
     ped <- read.ped( "myped" );  ## reads in myped.ped
     oped <- obfuscate( "myped" );
     write.ped( "obfuscate.ped", ped );

     phe <- read.phe( "myphe" );  ## reads in myphe.phe
     ophe <- obfuscate( "myphe" );
     write.phe( "obfuscate.phe", ped );
     ## End(Not run)

