| Library: | multi |
| See also: | sort |
| Macro: | rev | |
| Description: | reverts the order of the rows of the input matrix |
| Usage: | y = rev(x) | |
| Input: | ||
| x | n x d matrix, | |
| Output: | ||
| y | n x d matrix, x reverted | |
library("multi")
x = normal(5,2)
y = rev(x)
x
y
Content of object x [1,] -0.212931 0.698115 [2,] -1.007796 -0.389462 [3,] 1.950245 -1.574636 [4,] -1.305179 -0.265949 [5,] -1.434149 0.199474 Content of object y [1,] -1.434149 0.199474 [2,] -1.305179 -0.265949 [3,] 1.950245 -1.574636 [4,] -1.007796 -0.389462 [5,] -0.212931 0.698115
| Library: | multi |
| See also: | sort |