map: map a value onto others...

Description Usage Arguments Value Examples

Description

map a value onto others

Usage

1
map(x, each)

Arguments

x

vector

each

number of cuts

Value

vector

Examples

1
2
3
4
5
6
7
8
## 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 May 2, 2019, 4:54 p.m.

Related to map in OpenRepGrid...