This function returns a matrix that has been shifted to the right n columns
filling the previous columns with the given fill value.
Usage
shift.right(A, cols = 1, fill = 0)
Arguments
A
a matrix
cols
integer number of columns to be shifted to the right
fill
the fill which as default value zero
Value
A matrix.
Note
If the argument A is not a numeric matrix, then the function presents an error message and stops.
If the argument rows is not a positive integer, then the function presents an error message and stops.