zip2image           package:ElemStatLearn           R Documentation

_f_u_n_c_t_i_o_n _t_o _c_o_n_v_e_r_t _r_o_w _o_f _z_i_p _f_i_l_e _t_o _f_o_r_m_a_t _u_s_e_d _b_y _i_m_a_g_e()

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

     This is a utility function converting zip.train/zip.test data  to
     format useful for plotting with the function 'image'.

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

     zip2image(zip, line)

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

     zip: 'zip.train' or 'zip.test'.

    line: row of matrix to take 

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

     16 x 16 matrix suitable as argument for 'image'.

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

     Kjetil Halvorsen

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

     ## See example section of help file for zip.train

