asVector
Coerce an Object to a Vector

Description

Coerces an object to a vector.

Usage

asVector(object)
## S3 method for class 'xyVector':
asVector(object)

Arguments

object any object. Can be an object of class "xyVector" for method asVector.xyVector.

Details

asVector is a generic S3 function to coerce an object to a vector. Currently, there is no default method. Only an invisible method is implemented for class "xyVector".
Value
Returns a coerced vector. For method asVector.xyVector, the "y" component of object is returned.
See Also
xyVector
Examples
a <- xyVector(1:5, letters[5:9])
asVector(a)
Package splines version 6.0.0-69
Package Index