flip: Flip an array

Description Usage Arguments Value Examples

Description

reflects an array in a given dimension

Usage

1
flip(arr, by)

Arguments

arr

array

by

integer [1]

Value

array

Examples

1
2
3
4
mtx <- matrix(1:4, 2, 2)
mtx
Rflow:::flip(mtx, 1L)
Rflow:::flip(mtx, 2L)

CJBarry/Rflow documentation built on June 16, 2019, 12:35 p.m.