Shift Row(s) in a Dataset

DESCRIPTION:

Shifts a row (or rows) in a 1- or 2-dimensional dataset.

USAGE:

shift.row(target, start.row, end.row, shift.count) 

REQUIRED ARGUMENTS:

target
1- or 2-dimensional dataset in which the row(s) will be shifted. A 1-dimensional dataset is considered to be a single, unnamed column of length() rows.
start.row
integer value specifying the first row of target which is to be shifted.
end.row
integer value specifying the last row of target which is to be shifted.
shift.count
integer value specifying the number of rows start.row through end.row will be shifted towards the last row of target.

VALUE:

The target dataset with the row(s) shifted. New row(s) will be created between start.row and start.row + shift.count - 1, inclusive, with default names being generated.

SEE ALSO:

, , , , , .

EXAMPLES:

auto.new <- shift.row(auto.stats, 70, 74, 1)