n22dig               package:cwhstring               R Documentation

_S_h_o_w _v_e_c_t_o_r _o_r _m_a_t_r_i_x (_o_f _0 <= _x <=_1) _i_n _a _c_o_m_p_a_c_t _w_a_y:

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

     'n22dig' shows   "0.ab" as "ab", "1.00" as " I", "0" as " 0".

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

     n22dig(x, symm = TRUE)

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

       x: A numerical vector or matrix.

    symm: If 'symm = TRUE' then upper triangle will be suppressed.

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

     Representation of 'x' as two-digit vector or matrix.

_N_o_t_e:

     A violation of the condition on abs(x) will not be signalled.
     Empty places due to 'symm = TRUE' are filled with " ".

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

     Christian W. Hoffmann, christian.hoffmann@wsl.ch, <URL:
     http://www.wsl.ch/staff/christian.hoffmann>

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

     'n2c'.

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

     n22dig(cor(matrix(rnorm(100),10)),TRUE)
     #       [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10]
     #  [1,] " I" " "  " "  " "  " "  " "  " "  " "  " "  " "  
     #  [2,] "10" " I" " "  " "  " "  " "  " "  " "  " "  " "  
     #  [3,] " 8" "26" " I" " "  " "  " "  " "  " "  " "  " "  
     #  [4,] " 8" "49" " 2" " I" " "  " "  " "  " "  " "  " "  
     #  [5,] " 8" "22" " 9" "46" " I" " "  " "  " "  " "  " "  
     #  [6,] "40" "26" " 5" "27" "14" " I" " "  " "  " "  " "  
     #  [7,] " 8" "15" "21" "58" "13" "26" " I" " "  " "  " "  
     #  [8,] "13" "30" " 2" "58" "21" "41" "61" " I" " "  " "  
     #  [9,] "46" "22" " 7" "63" "15" "25" "43" "36" " I" " "  
     # [10,] "66" "51" "48" "16" "20" "27" "28" "20" "16" " I" 

