Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


rray (version 0.0.0.9000)

rray_tile: Tile an array

Description

Tile an array

Usage

rray_tile(x, times)

Arguments

x

A vector, matrix, array or rray.

times

An integer vector. The number of times to repeat the array along an axis.

Examples

Run this code
# NOT RUN {
x <- matrix(1:5)

# Repeat the rows twice
rray_tile(x, 2)

# Repeat the rows twice and the columns three times
rray_tile(x, c(2, 3))

# Tile into a third dimension
rray_tile(x, c(1, 2, 2))

# }

Run the code above in your browser using DataLab