DataFrame<R, C>.GetNearestRows Method

Returns a new data frame that contains only the rows in the specified sequence.

Definition

Namespace: Numerics.NET.DataAnalysis
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
C#
public DataFrame<R, C> GetNearestRows(
	IEnumerable<R> indexes,
	Direction direction
)

Parameters

indexes  IEnumerable<R>
A sequence of indexes of the rows to return.
direction  Direction
The direction to look for the key if an exact match is not found.

Return Value

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

Exceptions

ArgumentNullException

indexes is null.

See Also