This function returns a matrix that has had its rows shifted downwards filling the above rows
with the given fill value.
Usage
shift.down(A, rows = 1, fill = 0)
Arguments
A
a matrix
rows
the number of rows to be shifted
fill
the fill value which as a default is 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.