Shifts a vector to the left or right by k positions.
Vacated positions are filled with NA.
Details
Unlike vRot(), this function does not wrap elements around.
Elements shifted beyond the vector bounds are discarded.
See also
Other vector.reshape:
setLength(),
trim(),
vRot()
