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

Quantlet: 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")

randomize(0)

x = normal(5,2)

y = rev(x)

x

y

Result:

Contents of x

[1,] -0.21293  0.69812 

[2,]  -1.0078 -0.38946  

[3,]   1.9502  -1.5746  

[4,]  -1.3052 -0.26595 

[5,]  -1.4341  0.19947

Contents of y

[1,]  -1.4341  0.19947

[2,]  -1.3052 -0.26595 

[3,]   1.9502  -1.5746 

[4,]  -1.0078 -0.38946 

[5,] -0.21293  0.69812 


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, 21.9.2000