50% off: Unlimited data and AI learning.
State of Data and AI Literacy Report 2025

OpenRepGrid (version 0.1.9)

map: 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

Run this code
## 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)

Run the code above in your browser using DataLab