asVector               package: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)

