ones                package:calibrate                R Documentation

_G_e_n_e_r_a_t_e_s _a _m_a_t_r_i_x _o_f _o_n_e_s

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

     'ones' generates a matrix of ones.

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

     ones(n, p = n)

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

       n: number of rows 

       p: number of columns 

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

     if only n is specified, the resulting matrix will be square.

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

     a matrix filled with ones.

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

     Jan Graffelman (jan.graffelman@upc.edu)

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

     'matrix'

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

     Id <- ones(3)
     print(Id)

