 | DataFramePermuteRows Method |
Reorders the rows in this data frame according to the given permutation array.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntaxpublic DataFrame PermuteRows(
params int[] rowIndices
)
Public Function PermuteRows (
ParamArray rowIndices As Integer()
) As DataFrame
public:
DataFrame^ PermuteRows(
... array<int>^ rowIndices
)
member PermuteRows :
rowIndices : int[] -> DataFrame
Parameters
- rowIndices Int32
- The permutation array of row indices.
Return Value
DataFrameThis data frame.
ExceptionsException | Condition |
---|
InvalidArgumentException | Thrown if the number of row indices
in the permutation array is not equal to the number of rows in this data frame,
or if the permutation array does not contain unique indices. |
Remarks
Row[ permutation[i] ] is set to the ith row in the orginal data frame.
Permutation array must be the same length as the column length.
See Also