matrix_shift: matrix shift

Description Usage Arguments Value Author(s) Examples

View source: R/tif_utility.R

Description

shift matrix rows and columns

Usage

1
matrix_shift(m, shift)

Arguments

m

matrix

shift

c(h,v) number of columns and rows for shift

Value

m_shift shifted matrix

Author(s)

K. Juraic

Examples

1
2
3
m <- matrix(1:100,nrow = 10, ncol = 10, byrow = TRUE)
shift <- c(0,-2)
matrix_shift(m,shift)

kjuraic/rsaxs documentation built on Nov. 29, 2017, 10:20 p.m.