DataFrame<R, C>.GetRows Method

Definition

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

Overload List

GetRows(R[]) Returns a new data frame that contains only the rows with keys in the specified array.
GetRows(IEnumerable<R>) Returns a new data frame that contains only the rows in the specified sequence.
GetRows(Subset) Returns a new data frame that contains only the rows in the specified subset.
GetRows(Vector<Boolean>) Returns a new data frame that contains only the rows specified by a boolean mask.
GetRows(R, R) Returns a new data frame that contains only the rows specified by a range.

GetRows(R[])

Returns a new data frame that contains only the rows with keys in the specified array.
C#
public DataFrame<R, C> GetRows(
	params R[] keys
)

Parameters

keys  R[]
An array of keys of the rows to return.

Return Value

DataFrame<R, C>
A new data frame containing only the rows whose index is in keys.

GetRows(IEnumerable<R>)

Returns a new data frame that contains only the rows in the specified sequence.
C#
public DataFrame<R, C> GetRows(
	IEnumerable<R> keys
)

Parameters

keys  IEnumerable<R>
A sequence of keys of the rows to return.

Return Value

DataFrame<R, C>
A new data frame containing only the rows whose index is in keys.

Exceptions

GetRows(Subset)

Returns a new data frame that contains only the rows in the specified subset.
C#
public DataFrame<R, C> GetRows(
	Subset subset
)

Parameters

subset  Subset
A Subset that specifies the rows to return.

Return Value

DataFrame<R, C>
A new data frame containing only the rows in subset.

Exceptions

ArgumentNullException

subset is null.

DimensionMismatchException

The original length of subset does not equal the number of rows in the data frame.

GetRows(Vector<Boolean>)

Returns a new data frame that contains only the rows specified by a boolean mask.
C#
public DataFrame<R, C> GetRows(
	Vector<bool> mask
)

Parameters

mask  Vector<Boolean>
A boolean vector whose elements indicate whether the corresponding row should be included in the new data frame.

Return Value

DataFrame<R, C>
A new data frame containing only the rows whose corresponding value in mask is true.

GetRows(R, R)

Returns a new data frame that contains only the rows specified by a range.
C#
public DataFrame<R, C> GetRows(
	R firstKey,
	R lastKey
)

Parameters

firstKey  R
The key of the first row to be included in the result.
lastKey  R
The key of the last row to be included in the result.

Return Value

DataFrame<R, C>
A new data frame containing only the rows with a key between firstKey and lastKey.

See Also