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: xplore
See also: dim paf reshape

Quantlet: reduce
Description: Deletes all dimensions with only a single component.

Usage: y = reduce (x)
Input:
x array
Output:
y array, dim(y) contains no 1

Example:
library("xplore")
x = matrix(3, 1, 2, 1)
reduce(x)

Result:
Contents of y
[1,]     1     1
[2,]     1     1
[3,]     1     1



Author: T. Koetter, 19960207 license MD*Tech
(C) MD*TECH Method and Data Technologies, 05.02.2006