

asVector {splines}                           R Documentation

_C_o_e_r_c_e _a_n _O_b_j_e_c_t _t_o _a _V_e_c_t_o_r

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

     This is a generic function.  Methods for this function
     coerce objects of given classes to vectors.

_U_s_a_g_e_:

     asVector(object)

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

  object: An object.

_V_a_l_u_e_:

     a vector

_A_u_t_h_o_r_(_s_)_:

     Douglas Bates and Bill Venables

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

     `xyVector'

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

     library( splines )
     data( women )
     ispl <- interpSpline( weight ~ height,  women )
     pred <- predict(ispl)
     class(pred)
     str(pred)
     asVector(pred)

