Swaps the position of the given columns in the data frame.
Namespace:
CenterSpace.NMath.StatsAssembly: NMathStats (in NMathStats.dll) Version: 3.4.0.0
Syntax
| C# |
|---|
public DataFrame SwapColumns( int colIndex1, int colIndex2 ) |
| Visual Basic (Declaration) |
|---|
Public Function SwapColumns ( _ colIndex1 As Integer, _ colIndex2 As Integer _ ) As DataFrame |
| Visual C++ |
|---|
public: DataFrame^ SwapColumns( int colIndex1, int colIndex2 ) |
Parameters
- colIndex1
- Type: System..::.Int32
A column index.
- colIndex2
- Type: System..::.Int32
A column index.
Exceptions
| Exception | Condition |
|---|---|
| CenterSpace.NMath.Core..::.IndexOutOfRangeException | Thrown if a given column index is negative, or greater than or equal to the number of columns. |