Learn R Programming

OpenRepGrid (version 0.1.16)

map: map a value onto others

Description

map a value onto others

Usage

map(x, each)

Value

vector

Arguments

x

vector

each

number of cuts

Examples

Run this code
if (FALSE) {
map(1:10, 3)

m <- matrix(1:12, ncol = 4)
for (i in 1:12) {
  print(m[ring(i, 3), map(i, 4)])
}
}

Run the code above in your browser using DataLab