map: map a value onto others

View source: R/utils.r

mapR Documentation

map a value onto others

Description

map a value onto others

Usage

map(x, each)

Arguments

x

vector

each

number of cuts

Value

vector

Examples

## Not run: 
map(1:10, 3)

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

## End(Not run)


OpenRepGrid documentation built on Sept. 11, 2024, 7:16 p.m.

Related to map in OpenRepGrid...