dataFrame.row — insertBefore()
Description
The insertBefore() method of the row object repositions the selected row immediately before the specified row.
Signature
dataFrame.row(sourceRowIndex).insertBefore(targetRowIndex)Arguments
sourceRowIndex(number)- The index of the row to be placed.
targetRowIndex(number)- The index of the row before which the selected row will be placed.
Example
// insert the row 2 of the dataFrame before the row 1
dataFrame.row(2).insertBefore(1);