powered by
Flips matrices either left-right or up-down.
fliplr(object) flipud(object)
Return value is the same type as argument object.
object
vector or matrix to be flipped
P. Roebuck proebuck1701@gmail.com
These are S4 generic functions.
rot90
fliplr(1:9) flipud(1:9) # same as previous since vectors have no orientation in R fliplr(matrix(1:9, 3, 3, byrow=TRUE)) flipud(matrix(1:9, 3, 3, byrow=TRUE))
Run the code above in your browser using DataLab