Learn R Programming

arrowheadr (version 1.0.2)

nudger: Nudge columns of a matrix by fixed amounts

Description

Nudge columns of a matrix by fixed amounts

Usage

nudger(x, nudge)

Value

matrix

Arguments

x

a matrix

nudge

a single value or a vector with length equal to the number of columns in x

Examples

Run this code
nudger(matrix(0, nrow = 2, ncol = 2), nudge = c(0,1))

Run the code above in your browser using DataLab