DataFrame<R, C>.GetColumn Method

Definition

Namespace: Extreme.DataAnalysis
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

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