Data Frame<R, C>.Get Column Method
Definition
Namespace: Numerics.NET.DataAnalysis
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
Overload List
Get | Gets the specified column as a Double vector. |
Get | Gets the specified column as a strongly typed vector. |
GetColumn(C)
Gets the specified column as a Double vector.
public Vector<double> GetColumn(
C key
)
Parameters
- key C
- The key of the column.
Return Value
Vector<Double>A vector with elements of type Double.
Exceptions
Key | The column could not be retrieved because no column with the specified key could be found. |
Invalid | The element type of the column cannot be converted to Double. |
GetColumn<T>(C)
Gets the specified column as a strongly typed vector.
public Vector<T> GetColumn<T>(
C key
)
Parameters
- key C
- The key of the column.
Type Parameters
- T
- The element type of the returned vector.
Return Value
Vector<T>A vector with elements of type T.
Exceptions
Key | The column could not be retrieved because no column with the specified key could be found. |
Invalid | The element type of the column cannot be converted to type T. |