bdsI                 package:kinship                 R Documentation

_S_p_a_r_s_e _i_d_e_n_t_i_t_y _m_a_t_r_i_c_e_s

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

     This function will create an identitiy matrix, in the sparse
     'bdsmatrix' format.

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

     bdsI(id, blocksize)

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

      id: the identifier list.   This will become the dimnames of the
          final matrix, and must be a  set of unique values. It's
          length determines the dimension of the final matrix 

blocksize: the blocksize vector of the final matrix.  If supplied, the
          sum of blocksizes must equal the dimension of the matrix.  By
          default, the created matrix is as sparse as possible. 

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

     an identity matrix.

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

     imat <- bdsI(1:10)

