fliplr | R Documentation |
Flips matrices either left-right or up-down.
fliplr(object)
flipud(object)
object |
vector or matrix to be flipped |
These are S4 generic functions.
Return value is the same type as argument object
.
P. Roebuck proebuck1701@gmail.com
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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.