DataFrame<R, C>.GetColumn Method

Definition

Namespace: Numerics.NET.DataAnalysis
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4

Overload List

GetColumn(C) Gets the specified column as a Double vector.
GetColumn<T>(C) Gets the specified column as a strongly typed vector.

GetColumn(C)

Gets the specified column as a Double vector.
C#
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

KeyNotFoundException

The column could not be retrieved because no column with the specified key could be found.

InvalidCastException

The element type of the column cannot be converted to Double.

GetColumn<T>(C)

Gets the specified column as a strongly typed vector.
C#
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

KeyNotFoundException

The column could not be retrieved because no column with the specified key could be found.

InvalidCastException

The element type of the column cannot be converted to type T.

See Also