 | DataFrameTabulate(Int32, Int32, FuncIDFColumn, Double) 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
Syntaxpublic DataFrame Tabulate(
int factorColIndex,
int dataColIndex,
Func<IDFColumn, double> function
)
Public Function Tabulate (
factorColIndex As Integer,
dataColIndex As Integer,
function As Func(Of IDFColumn, Double)
) As DataFrame
public:
DataFrame^ Tabulate(
int factorColIndex,
int dataColIndex,
Func<IDFColumn^, double>^ function
)
member Tabulate :
factorColIndex : int *
dataColIndex : int *
function : Func<IDFColumn, float> -> DataFrame
Parameters
- factorColIndex Int32
- The index of the column for the grouping factor.
- dataColIndex Int32
- The index of the data column.
- function FuncIDFColumn, Double
-
A delegate that takes a data frame column and returns a double-precision floating
point number.
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 DFNumericColumn 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