 | DataFrameTabulate(String, String, FuncIDFColumn, Boolean) 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(
string factorColName,
string dataColName,
Func<IDFColumn, bool> function
)
Public Function Tabulate (
factorColName As String,
dataColName As String,
function As Func(Of IDFColumn, Boolean)
) As DataFrame
public:
DataFrame^ Tabulate(
String^ factorColName,
String^ dataColName,
Func<IDFColumn^, bool>^ function
)
member Tabulate :
factorColName : string *
dataColName : string *
function : Func<IDFColumn, bool> -> DataFrame
Parameters
- factorColName String
- The name of the column for the grouping factor.
- dataColName String
- The name of the data column.
- function FuncIDFColumn, Boolean
-
A delegate that takes a data frame column and returns a boolean value.
Return Value
DataFrame
A new data frame.
ExceptionsException | Condition |
---|
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 DFBoolColumn 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