Grouping.Pivot<R, C> Method
Creates a new two-dimensional grouping from the specified row and column keys.
Definition
Namespace: Numerics.NET.DataAnalysis
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
C#
A pivot object that represent a two-dimensional grouping with the unique values in rowValues as row keys and the unique values in columnValues as column keys.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
public static Pivot<R, C> Pivot<R, C>(
IList<R> rowValues,
IList<C> columnValues
)
Parameters
- rowValues IList<R>
- A list containing the row keys.
- columnValues IList<C>
- A list containing the column keys.
Type Parameters
- R
- The element type of the row keys.
- C
- The element type of the column keys.
Return Value
Pivot<R, C>A pivot object that represent a two-dimensional grouping with the unique values in rowValues as row keys and the unique values in columnValues as column keys.
Exceptions
Argument | rowValues is null. -or- rowValues is null. |
Dimension | rowValues and columnValues do not have the same length. |