Simple function to move the elements of a vector to earlier or later positions depending on the value of shift. Auxiliary to other functions, rather multipurpose.

shift.vector(x, shift = 0, fill = FALSE)

## Arguments

x vector. integer. Value < length(x). Default 0. Values to fill newly created positions, e.g. FALSE, NA, or 0.

## Value

The vector x, shifted left or right.

## Details

Nothing fancy here. This is used for example in Noumbissi() to match denominator ranges to numerator positions using logical vectors.