triang                package:micEcon                R Documentation

_U_p_p_e_r _t_r_i_a_n_g_u_l_a_r _m_a_t_r_i_x _f_r_o_m _a _v_e_c_t_o_r

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

     Creates an upper triangular square matrix from a vector.

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

     triang( v, n )

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

       v: vector

       n: desired dimension of the returned square matrix

_N_o_t_e:

     If the vector has less elements than the upper triangular matrix,
     the last elements are set to zero.

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

     Arne Henningsen ahenningsen@agric-econ.uni-kiel.de

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

     'veclipos'.

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

        v <- c( 1:5 )
        triang( v, 3 )

