 | DataFrameTabulate(Int32, Int32, FuncIDFColumn, DateTime) 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, DateTime> function
)
Public Function Tabulate (
factorColIndex As Integer,
dataColIndex As Integer,
function As Func(Of IDFColumn, DateTime)
) As DataFrame
public:
DataFrame^ Tabulate(
int factorColIndex,
int dataColIndex,
Func<IDFColumn^, DateTime>^ function
)
member Tabulate :
factorColIndex : int *
dataColIndex : int *
function : Func<IDFColumn, DateTime> -> DataFrame
Parameters
- factorColIndex Int32
- The index of the column for the grouping factor.
- dataColIndex Int32
- The index of the data column.
- function FuncIDFColumn, DateTime
-
A delegate that takes a data frame column and returns a datetime value.
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 DFDateTimeColumn 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