defaultElement        package:externalVector        R Documentation

_R_e_t_u_r_n _t_h_e _d_e_f_a_u_l_t _e_l_e_m_e_n_t _f_o_r _a _v_e_c_t_o_r _o_b_j_e_c_t.

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

     For a vector object, this generic returns a length one vector with
     the default element for the vector as the first (and only)
     element.

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

     defaultElement(x)

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

       x: A vector object. 

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

     A length one vector with the default element.

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

     'externalVector-class' for the method for this generic for the
     "externalVector" class.

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

     defaultElement(1:5)
     defaultElement(list(1, 2))

