Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

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

Example:
library("multi")
x = normal(5,2)
y = rev(x)
x
y
Result:
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

Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Author: Christian Hafner, Sperlich 971027
(C) MD*TECH Method and Data Technologies, 28.6.1999