| DataFrameTabulate(Int32, Int32, FuncIDFColumn, Int32) Method |
Tabulates the results of applying the given delegate to the values in the specified data
column for each level of the specified factor.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public DataFrame Tabulate(
int factorColIndex,
int dataColIndex,
Func<IDFColumn, int> function
)
Public Function Tabulate (
factorColIndex As Integer,
dataColIndex As Integer,
function As Func(Of IDFColumn, Integer)
) As DataFrame
public:
DataFrame^ Tabulate(
int factorColIndex,
int dataColIndex,
Func<IDFColumn^, int>^ function
)
member Tabulate :
factorColIndex : int *
dataColIndex : int *
function : Func<IDFColumn, int> -> DataFrame
Parameters
- factorColIndex Int32
- The index of the column for the grouping factor.
- dataColIndex Int32
- The index of the data column.
- function FuncIDFColumn, Int32
-
A delegate that takes a data frame column and returns an integer.
Return Value
DataFrame
A new data frame.
Remarks
The returned data frame has row keys containing the sorted, unique factor levels
as strings. The only column, a DFIntColumn named Results, contains the
results of applying the given delegate to the values in the data column tabulated
for each level of the factor.
A final row is appended, with key Overall, containing the results of applying
the given delegate to all values in the data column.
See Also