Returns a new column with the given name and size containing the items in this
column that evaluate to true using the given logical function.
Namespace:
CenterSpace.NMath.StatsAssembly: NMathStats (in NMathStats.dll) Version: 3.4.0.0
Syntax
| C# |
|---|
public DFStringColumn Apply( string name, StatsFunctions..::.LogicalStringFunction function ) |
| Visual Basic (Declaration) |
|---|
Public Function Apply ( _ name As String, _ function As StatsFunctions..::.LogicalStringFunction _ ) As DFStringColumn |
| Visual C++ |
|---|
public: DFStringColumn^ Apply( String^ name, StatsFunctions..::.LogicalStringFunction^ function ) |
Parameters
- name
- Type: System..::.String
Name for the new column.
- function
- Type: CenterSpace.NMath.Stats..::.StatsFunctions..::.LogicalStringFunction
A delegate object representing a function that takes a single string parameter and returns a bool.
Return Value
A new column with the given name containing the items in this column that evaluate to true using the given logical function.
Remarks
For example, if you apply a function that returns true if a string
starts with "b" to a column containing "banana", "apple", "boat", "car",
a new column containing "banana", "boat" is returned.