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.

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

     Methods for vector coercion in new classes must be created for the
     `asVector' generic instead of `as.vector'. The `as.vector'
     function is internal and not easily extended.  Currently the only
     class with an `asVector' method is the `xyVector' class.

_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:

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

