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: require(stats) ispl <- interpSpline( weight ~ height, women ) pred <- predict(ispl) class(pred) utils::str(pred) asVector(pred)