RObject.As Vector<T> Method
Attempts to convert the object to a vector with the specified element type.
Definition
Namespace: Extreme.Data.R
Assembly: Extreme.Data (in Extreme.Data.dll) Version: 3.2.0
C#
The new vector if successful; otherwise null.
Assembly: Extreme.Data (in Extreme.Data.dll) Version: 3.2.0
public virtual Vector<T> AsVector<T>(
bool strict = true
)
Parameters
- strict Boolean (Optional)
Type Parameters
- T
- The element type of the vector
Return Value
Vector<T>The new vector if successful; otherwise null.
Implements
IDataObject<TObject>.AsVector<T>(Boolean)Remarks
The conversion may fail for two reasons. Either the object is not a vector, matrix, or one-column data frame, or the element type of the vector cannot be cast to T.