slice-datatable

Selects rows, based on position, in a datatable

Arguments

Inputs:

data: The datatable containing the rows to be selected.

begin: The position of the first row to be selected. A negative number can be used to count from the end of the datatable (e.g. '-5' would start at the fifth-to-last row). If unspecified, defaults to '1' (first row of the datatable)

end: The position of the last row to be selected. A negative number can be used to count from the end of the datatable. If unspecified, defaults to -1 (the last row in the datatable).

limit: A positive number specifying a limit on the number of rows to be selected. If unspecified, no limit will be applied.

Output:

data: A datatable containing the selected rows.

Last updated