asVector {splines} | R Documentation |
This is a generic function. Methods for this function coerce objects of given classes to vectors.
asVector(object)
object |
An object. |
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.
a vector
Douglas Bates and Bill Venables
require(stats) ispl <- interpSpline( weight ~ height, women ) pred <- predict(ispl) class(pred) utils::str(pred) asVector(pred)