Click or drag to resize

DataFrameTabulate(Int32, Int32, FuncIDFColumn, Object) 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.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public DataFrame Tabulate(
	int factorColIndex,
	int dataColIndex,
	Func<IDFColumn, Object> function
)

Parameters

factorColIndex  Int32
The index of the column for the grouping factor.
dataColIndex  Int32
The index of the data column.
function  FuncIDFColumn, Object
A delegate that takes a data frame column and returns a generic object.

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 DFGenericColumn 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