matrix.utility | R Documentation |
Utility functions for manipulating matrices.
flipud(x)
fliplr(x)
x |
a matrix |
The flipud
function returns a matrix the same size as x
,
with the order of the rows reversed, so the matrix has been flipped
vertically. The fliplr
function returns a matrix the same size
as x
but flipped horizontally, with the order of the columns
reversed.
Kevin R. Coombes krc@silicovore.com
mat <- matrix(1:6, 2, 3)
mat
flipud(mat)
fliplr(mat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.