Click or drag to resize

DataFrameTabulate(String, String, FuncIDFColumn, String) 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(
	string factorColName,
	string dataColName,
	Func<IDFColumn, string> function
)

Parameters

factorColName  String
The name of the column for the grouping factor.
dataColName  String
The name of the data column.
function  FuncIDFColumn, String
A delegate that takes a data frame column and returns a string.

Return Value

DataFrame
A new data frame.
Exceptions
ExceptionCondition
InvalidArgumentException Thrown if the given factor or data column names do not exist in this data frame.
Remarks
The returned data frame has row keys containing the sorted, unique factor levels as strings. The only column, a DFStringColumn 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