relist2                package:bbmle                R Documentation

_r_e_c_o_n_s_t_r_u_c_t _t_h_e _s_t_r_u_c_t_u_r_e _o_f _a _l_i_s_t

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

     reshapes a vector according to a list template

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

     relist2(v, l)

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

       v: vector, probably numeric, of values to reshape

       l: template list giving structure

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

     attempts to coerce 'v' into a list with the same structure and
     names as 'l'

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

     a list with values corresponding to v and structure corresponding
     to l

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

     Ben Bolker

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

       l = list(b=1,c=2:5,d=matrix(1:4,nrow=2))
       relist2(1:9,l)

