 | 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.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntaxpublic DataFrame Tabulate(
string factorColName,
string dataColName,
Func<IDFColumn, string> function
)
Public Function Tabulate (
factorColName As String,
dataColName As String,
function As Func(Of IDFColumn, String)
) As DataFrame
public:
DataFrame^ Tabulate(
String^ factorColName,
String^ dataColName,
Func<IDFColumn^, String^>^ function
)
member Tabulate :
factorColName : string *
dataColName : string *
function : Func<IDFColumn, string> -> DataFrame
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.
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 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