powered by
Nudge columns of a matrix by fixed amounts
nudger(x, nudge)
matrix
a matrix
a single value or a vector with length equal to the number of columns in x
nudger(matrix(0, nrow = 2, ncol = 2), nudge = c(0,1))
Run the code above in your browser using DataLab