| flip {fuj} | R Documentation | 
Flip
Description
Flip an object.
Usage
flip(x, ...)
## Default S3 method:
flip(x, ...)
## S3 method for class 'matrix'
flip(x, by = c("rows", "columns"), keep_rownames = NULL, ...)
## S3 method for class 'data.frame'
flip(x, by = c("rows", "columns"), keep_rownames = NULL, ...)
Arguments
| x | An object | 
| ... | Additional arguments passed to methods | 
| by | Flip by  | 
| keep_rownames | Logical, if  | 
Value
A vector of values, equal length of x that is reversed or a
data frame with flipped rows/columns
Examples
flip(letters[1:3])
flip(seq.int(9, -9, by = -3))
flip(head(iris))
flip(head(iris), keep_rownames = TRUE)
flip(head(iris), by = "col")
[Package fuj version 0.2.1 Index]