Attempts to convert the object to a vector with the specified element type.
Namespace: Extreme.Data.RAssembly: Extreme.Data (in Extreme.Data.dll) Version: 1.0.16170.0 (1.0.16170.0)
public virtual Vector<T> AsVector<T>(
bool strict = true
)
Public Overridable Function AsVector(Of T) (
Optional strict As Boolean = true
) As Vector(Of T)
public:
generic<typename T>
virtual Vector<T>^ AsVector(
bool strict = true
)
abstract AsVector :
?strict : bool
(* Defaults:
let _strict = defaultArg strict true
*)
-> Vector<'T>
override AsVector :
?strict : bool
(* Defaults:
let _strict = defaultArg strict true
*)
-> Vector<'T>
Parameters
- strict (Optional)
- Type: SystemBoolean
Type Parameters
- T
- The element type of the vector
Return Value
Type:
VectorTThe new vector if successful; otherwise
.
Implements
IDataObjectTObjectAsVectorT(Boolean)
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.
Numerical Libraries
Supported in: 6.0
Reference