R/main.R
nudger.Rd
Nudge columns of a matrix by fixed amounts
nudger(x, nudge)
a matrix
a single value or a vector with length equal to the number of columns in x
matrix
nudger(matrix(0, nrow = 2, ncol = 2), nudge = c(0,1)) #> [,1] [,2] #> [1,] 0 1 #> [2,] 0 1