flip: Flip an array, matrix or vector about an axis

Description Usage Arguments Details

View source: R/im3d.R

Description

Flip an array, matrix or vector about an axis

Usage

1
2
3
4
flip(x, ...)

## S3 method for class 'array'
flip(x, flipdim = "X", ...)

Arguments

x

Object to flip

...

Aditional arguments for methods

flipdim

Character vector or 1-indexed integer indicating array dimension alogn which flip will occur. Characters X, Y, Z map onto dimensions 1, 2, 3.

Details

Note that dimensions 1 and 2 for R matrices will be rows and columns, respectively, which does not map easily onto the intuition of a 2D image matrix where the X axis would typically be thought of as running from left to right on the page and the Y axis would run from top to bottom.


nat documentation built on Sept. 6, 2021, 5:09 p.m.